1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix API call to get ActiveCluster information and add (#41744)

connected arrays and volume group counts to default
This commit is contained in:
Simon Dodsley 2018-06-22 11:46:02 -04:00 committed by Adam Miller
parent ba3db90e3a
commit c144adc9de

View file

@ -133,11 +133,14 @@ ansible_facts:
}
"default": {
"array_name": "flasharray1",
"connected_arrays": 1,
"hostgroups": 0,
"hosts": 10,
"pods": 3,
"protection_groups": 1,
"purity_version": "5.0.4",
"snapshots": 1
"snapshots": 1,
"volume_groups": 2
}
"hgroups": {}
"hosts": {
@ -305,8 +308,9 @@ def generate_default_dict(array):
defaults = array.get()
api_version = array._list_available_rest_versions()
if AC_REQUIRED_API_VERSION in api_version:
pods = array.get_pods()
default_facts['pods'] = len(pods)
default_facts['volume_groups'] = len(array.list_vgroups())
default_facts['connected_arrays'] = len(array.list_array_connections())
default_facts['pods'] = len(array.list_pods())
hosts = array.list_hosts()
snaps = array.list_volumes(snap=True, pending=True)
pgroups = array.list_pgroups(pending=True)