mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +00:00
cloudstack: cs_instance: warn for changes not applicable to running VMs. (#28664)
This commit is contained in:
@@ -829,6 +829,9 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
|
||||
# Start VM again if it was running before
|
||||
if instance_state == 'running' and start_vm:
|
||||
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user