Skip to content

Commit

Permalink
Merge pull request #166 from elyezer/fix-setup-proxy
Browse files Browse the repository at this point in the history
Fix setup_proxy task
  • Loading branch information
sghai committed Mar 23, 2015
2 parents 489ec7b + 195149a commit 881186c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions automation_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ def setup_proxy(run_katello_installer=True):
'katello-proxy-url': 'http://{0}'.format(proxy_info.hostname),
'katello-proxy-port': proxy_info.port,
}
if proxy_info.username is None:
if proxy_info.username is not None:
installer_options['katello-proxy-username'] = proxy_info.username
if proxy_info.password is None:
if proxy_info.password is not None:
installer_options['katello-proxy-password'] = proxy_info.password
if run_katello_installer:
katello_installer(**installer_options)
Expand Down

0 comments on commit 881186c

Please sign in to comment.