Merge remote-tracking branch 'upstream/2015.8' into boto_secgroup_add_vpc_name

This commit is contained in:
Tom Williams 2015-09-30 21:06:37 -04:00
commit 35b66e28a3

View file

@ -342,7 +342,11 @@ class SaltCloud(parsers.SaltCloudParser):
if dmap.get('existing', None):
for name in dmap['existing']:
ret[name] = {'Message': 'Already running'}
if 'ec2' in dmap['existing'][name]['provider']:
msg = 'Instance already exists, or is terminated and has the same name.'
else:
msg = 'Already running.'
ret[name] = {'Message': msg}
except (SaltCloudException, Exception) as exc:
msg = 'There was a query error: {0}'