mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 11:11:07 -03:30
fix equation for isolated instance capacity
This commit is contained in:
@@ -41,7 +41,8 @@ def main():
|
|||||||
total_mem_value = out.split()[7]
|
total_mem_value = out.split()[7]
|
||||||
if int(total_mem_value) <= 2048:
|
if int(total_mem_value) <= 2048:
|
||||||
cap = 50
|
cap = 50
|
||||||
cap = 50 + ((int(total_mem_value) / 1024) - 2) * 75
|
else:
|
||||||
|
cap = 50 + ((int(total_mem_value) / 1024) - 2) * 75
|
||||||
|
|
||||||
# Module never results in a change
|
# Module never results in a change
|
||||||
module.exit_json(changed=False, capacity=cap, version=version)
|
module.exit_json(changed=False, capacity=cap, version=version)
|
||||||
|
|||||||
Reference in New Issue
Block a user