1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

cloudstack: cs_instance: warn for changes not applicable to running VMs. (#28664)

This commit is contained in:
René Moser 2017-08-25 16:47:14 +02:00 committed by GitHub
parent 9190598096
commit cc3bb0a043

View file

@ -829,6 +829,9 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
# Start VM again if it was running before # Start VM again if it was running before
if instance_state == 'running' and start_vm: if instance_state == 'running' and start_vm:
instance = self.start_instance() instance = self.start_instance()
else:
self.module.warn("Changes won't be applied to running instances. " +
"Use force=true to allow the instance %s to be stopped/started." % instance['name'])
return instance return instance