|
|
@ -340,6 +340,7 @@ from ansible.module_utils.basic import AnsibleModule
|
|
|
|
from ansible.module_utils.pure import get_system, purefa_argument_spec
|
|
|
|
from ansible.module_utils.pure import get_system, purefa_argument_spec
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ADMIN_API_VERSION = '1.14'
|
|
|
|
S3_REQUIRED_API_VERSION = '1.16'
|
|
|
|
S3_REQUIRED_API_VERSION = '1.16'
|
|
|
|
LATENCY_REQUIRED_API_VERSION = '1.16'
|
|
|
|
LATENCY_REQUIRED_API_VERSION = '1.16'
|
|
|
|
AC_REQUIRED_API_VERSION = '1.14'
|
|
|
|
AC_REQUIRED_API_VERSION = '1.14'
|
|
|
@ -461,14 +462,16 @@ def generate_config_dict(array):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def generate_admin_dict(array):
|
|
|
|
def generate_admin_dict(array):
|
|
|
|
|
|
|
|
api_version = array._list_available_rest_versions()
|
|
|
|
admin_facts = {}
|
|
|
|
admin_facts = {}
|
|
|
|
admins = array.list_admins()
|
|
|
|
if ADMIN_API_VERSION in api_version:
|
|
|
|
for admin in range(0, len(admins)):
|
|
|
|
admins = array.list_admins()
|
|
|
|
admin_name = admins[admin]['name']
|
|
|
|
for admin in range(0, len(admins)):
|
|
|
|
admin_facts[admin_name] = {
|
|
|
|
admin_name = admins[admin]['name']
|
|
|
|
'type': admins[admin]['type'],
|
|
|
|
admin_facts[admin_name] = {
|
|
|
|
'role': admins[admin]['role'],
|
|
|
|
'type': admins[admin]['type'],
|
|
|
|
}
|
|
|
|
'role': admins[admin]['role'],
|
|
|
|
|
|
|
|
}
|
|
|
|
return admin_facts
|
|
|
|
return admin_facts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|