From 9f7584e3116e75d9eae23ec91bed8d89cb52be24 Mon Sep 17 00:00:00 2001 From: Kevin Breit Date: Tue, 19 Feb 2019 16:04:46 -0600 Subject: [PATCH] meraki_admin - Added recently added return fields for query (#51876) * Added recently added return fields for query - Defined type of string for older fields too * Fix incorrect type for org_id --- .../modules/network/meraki/meraki_admin.py | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/meraki/meraki_admin.py b/lib/ansible/modules/network/meraki/meraki_admin.py index a63c1804d1..9a047fb2a7 100644 --- a/lib/ansible/modules/network/meraki/meraki_admin.py +++ b/lib/ansible/modules/network/meraki/meraki_admin.py @@ -25,15 +25,18 @@ options: description: - Name of the dashboard administrator. - Required when creating a new administrator. + type: str email: description: - Email address for the dashboard administrator. - Email cannot be updated. - Required when creating or editing an administrator. + type: str orgAccess: description: - Privileges assigned to the administrator in the organization. choices: [ full, none, read-only ] + type: str tags: description: - Tags the administrator has privileges on. @@ -49,15 +52,18 @@ options: - If C(state) is C(absent), name takes priority over email if both are specified. choices: [ absent, present, query ] required: true + type: str org_name: description: - Name of organization. - Used when C(name) should refer to another object. - When creating a new administrator, C(org_name), C(network), or C(tags) must be specified. aliases: ['organization'] + type: str org_id: description: - ID of organization. + type: str author: - Kevin Breit (@kbreit) extends_documentation_fragment: meraki @@ -141,6 +147,26 @@ data: returned: success type: str sample: John Doe + accountStatus: + description: Status of account. + returned: success + type: str + sample: ok + twoFactorAuthEnabled: + description: Enabled state of two-factor authentication for administrator. + returned: success + type: bool + sample: false + hasApiKey: + description: Defines whether administrator has an API assigned to their account. + returned: success + type: bool + sample: false + lastActive: + description: Date and time of time the administrator was active within Dashboard. + returned: success + type: str + sample: 2019-01-28 14:58:56 -0800 networks: description: List of networks administrator has access on. returned: success @@ -176,6 +202,7 @@ data: returned: success type: str sample: full + ''' import os @@ -306,7 +333,7 @@ def main(): tags=dict(type='json'), networks=dict(type='json'), org_name=dict(type='str', aliases=['organization']), - org_id=dict(type='int'), + org_id=dict(type='str'), ) # seed the result dict in the object