Skip to content

Commit d43b1e0

Browse files
pmoravecTurboTurtle
authored andcommitted
[collect] Imply --upload when --upload-url is set
Setting --upload-url should imply uploading the tarball at the end, regardless of --upload is explicitly set or not. The same is already in place for "sos report", so let unify it. Resolves: #3464 Signed-off-by: Pavel Moravec <[email protected]>
1 parent d9aa743 commit d43b1e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sos/collector/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ def collect(self):
12701270
msg = 'No sosreports were collected, nothing to archive...'
12711271
self.exit(msg, 1)
12721272

1273-
if self.opts.upload and self.policy.get_upload_url():
1273+
if self.opts.upload or self.opts.upload_url:
12741274
try:
12751275
self.policy.upload_archive(arc_name)
12761276
self.ui_log.info("Uploaded archive successfully")

0 commit comments

Comments
 (0)