Skip to content

Commit

Permalink
Fix capsule cert generate for sat versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkathole authored and kbidarkar committed May 22, 2018
1 parent d7478cd commit 407e848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automation_tools/satellite6/capsule.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def generate_capsule_certs(capsule_hostname, force=False):
cert_path = '{0}-certs.tar'.format(capsule_hostname)
result = run('[ -f {0} ]'.format(cert_path), quiet=True)
if result.failed or force:
if os.environ.get('SATELLITE_VERSION') in ['6.3', '6.4']:
if os.environ.get('SATELLITE_VERSION') not in ['6.1', '6.2']:
run('capsule-certs-generate -v --foreman-proxy-fqdn {0} '
'--certs-tar {1} --certs-update-all'.format(capsule_hostname,
cert_path
Expand Down

0 comments on commit 407e848

Please sign in to comment.