Merge pull request #2801 from ryanpetrello/more-robust-isolated-capacity

collect isolated capacity using a cache plugin, not stdout parsing

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot]
2018-12-20 20:01:00 +00:00
committed by GitHub
4 changed files with 65 additions and 37 deletions

View File

@@ -62,7 +62,12 @@ def main():
# Module never results in a change
module.exit_json(changed=False, capacity_cpu=capacity_cpu,
capacity_mem=capacity_mem, version=version)
capacity_mem=capacity_mem, version=version,
ansible_facts=dict(
awx_capacity_cpu=capacity_cpu,
awx_capacity_mem=capacity_mem,
awx_capacity_version=version
))
if __name__ == '__main__':