mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
* minor refactors on plugins/modules/cloud/misc
* added changelog fragment
* removed unreachable statement
* Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/cloud/misc/rhevm.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* adjusted per PR comment
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 3afcf7e75d
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
5a7d234d80
commit
0a676406b3
7 changed files with 32 additions and 29 deletions
|
@ -547,7 +547,7 @@ class RHEVConn(object):
|
|||
|
||||
def set_Memory_Policy(self, name, memory_policy):
|
||||
VM = self.get_VM(name)
|
||||
VM.memory_policy.guaranteed = int(int(memory_policy) * 1024 * 1024 * 1024)
|
||||
VM.memory_policy.guaranteed = int(memory_policy) * 1024 * 1024 * 1024
|
||||
try:
|
||||
VM.update()
|
||||
setMsg("The memory policy has been updated.")
|
||||
|
@ -1260,7 +1260,7 @@ def core(module):
|
|||
|
||||
r = RHEV(module)
|
||||
|
||||
state = module.params.get('state', 'present')
|
||||
state = module.params.get('state')
|
||||
|
||||
if state == 'ping':
|
||||
r.test()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue