mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Adding message for null public IP
This commit is contained in:
parent
25d3a75d8c
commit
3715cd7d65
1 changed files with 3 additions and 0 deletions
|
@ -2036,6 +2036,9 @@ def query_instance(vm_=None, call=None):
|
|||
log.debug('Returned query data: {0}'.format(data))
|
||||
|
||||
if 'ipAddress' in data[0]['instancesSet']['item']:
|
||||
log.error(
|
||||
'Public IP not detected. If private IP is meant for bootstrap you must specify "ssh_interface: private_ips" in your profile.'
|
||||
)
|
||||
return data
|
||||
if ssh_interface(vm_) == 'private_ips' and \
|
||||
'privateIpAddress' in data[0]['instancesSet']['item']:
|
||||
|
|
Loading…
Add table
Reference in a new issue