Merge pull request #29548 from rallytime/bp-29449

Back-port #29449 to 2015.8
This commit is contained in:
Mike Place 2015-12-09 09:19:07 -07:00
commit 3b2c93a2e5

View file

@ -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']: