mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't fail hard of version comparison
This commit is contained in:
parent
871d218914
commit
a13632cd46
1 changed files with 7 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue