mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Do not SSH to the instance if deploy is False
This commit is contained in:
parent
e7fe24dc64
commit
09f208fe63
1 changed files with 8 additions and 6 deletions
|
@ -2469,13 +2469,15 @@ def create(vm_=None, call=None):
|
|||
log.debug('Salt interface set to: {0}'.format(salt_ip_address))
|
||||
vm_['salt_host'] = salt_ip_address
|
||||
|
||||
display_ssh_output = config.get_cloud_config_value(
|
||||
'display_ssh_output', vm_, __opts__, default=True
|
||||
)
|
||||
if config.get_cloud_config_value(
|
||||
'deploy', vm_, __opts__, default=True):
|
||||
display_ssh_output = config.get_cloud_config_value(
|
||||
'display_ssh_output', vm_, __opts__, default=True
|
||||
)
|
||||
|
||||
vm_ = wait_for_instance(
|
||||
vm_, data, ip_address, display_ssh_output
|
||||
)
|
||||
vm_ = wait_for_instance(
|
||||
vm_, data, ip_address, display_ssh_output
|
||||
)
|
||||
|
||||
# The instance is booted and accessible, let's Salt it!
|
||||
ret = instance.copy()
|
||||
|
|
Loading…
Add table
Reference in a new issue