Don't fail hard of version comparison

This commit is contained in:
Pedro Algarvio 2014-04-29 23:58:37 +01:00
parent 871d218914
commit a13632cd46

View file

@ -395,13 +395,16 @@ def run(opts):
version_info = json.loads(stdout.strip())
if opts.bootstrap_salt_commit[:7] not in version_info[vm_name]:
print('\n\nATTENTION!!!!\n')
print('The boostrapped minion version commit does not contain the desired commit:')
print(' {0!r} does not contain {1!r}'.format(version_info[vm_name], opts.bootstrap_salt_commit[:7]))
print('\n\n')
sys.stdout.flush()
if opts.clean and 'JENKINS_SALTCLOUD_VM_NAME' not in os.environ:
delete_vm(opts)
sys.exit(retcode)
print('matches!')
#if opts.clean and 'JENKINS_SALTCLOUD_VM_NAME' not in os.environ:
# delete_vm(opts)
#sys.exit(retcode)
else:
print('matches!')
# Run preparation SLS
time.sleep(3)