Skip to content

Commit

Permalink
[collect] Imply --upload when --upload-url is set
Browse files Browse the repository at this point in the history
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: sosreport#3464

Signed-off-by: Pavel Moravec <[email protected]>
  • Loading branch information
pmoravec authored and TurboTurtle committed Jan 8, 2024
1 parent d9aa743 commit d43b1e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sos/collector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ def collect(self):
msg = 'No sosreports were collected, nothing to archive...'
self.exit(msg, 1)

if self.opts.upload and self.policy.get_upload_url():
if self.opts.upload or self.opts.upload_url:
try:
self.policy.upload_archive(arc_name)
self.ui_log.info("Uploaded archive successfully")
Expand Down

0 comments on commit d43b1e0

Please sign in to comment.