aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/policies/distros/redhat.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/policies/distros/redhat.py b/sos/policies/distros/redhat.py
index dd053548..857b84d5 100644
--- a/sos/policies/distros/redhat.py
+++ b/sos/policies/distros/redhat.py
@@ -377,7 +377,8 @@ support representative.
from RHCP failures to the public RH dropbox
"""
try:
- if not self.get_upload_user() or not self.get_upload_password():
+ if self.upload_url.startswith(RH_API_HOST) and \
+ (not self.get_upload_user() or not self.get_upload_password()):
self.upload_url = RH_SFTP_HOST
uploaded = super(RHELPolicy, self).upload_archive(archive)
except Exception: