Make sure message is the most accurate. Instance may be stopped or shutting down.

This commit is contained in:
rallytime 2015-09-30 14:27:07 -06:00
parent da6b4b3604
commit 57c6535fc2

View file

@ -343,7 +343,7 @@ class SaltCloud(parsers.SaltCloudParser):
if dmap.get('existing', None):
for name in dmap['existing']:
if 'ec2' in dmap['existing'][name]['provider']:
msg = 'Already running, or is terminated and has the same name.'
msg = 'Instance already exists, or is terminated and has the same name.'
else:
msg = 'Already running.'
ret[name] = {'Message': msg}