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:
parent
9190598096
commit
cc3bb0a043
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue