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

pull/28671/head
René Moser 7 years ago committed by GitHub
parent 9190598096
commit cc3bb0a043

@ -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

Loading…
Cancel
Save