From 0590bad4a78fc70e6029063fa1e2b0d737989f8f Mon Sep 17 00:00:00 2001 From: Fred-sun Date: Fri, 25 Mar 2022 10:09:09 +0800 Subject: [PATCH] update document, fix sanity error --- plugins/modules/azure_rm_automationrunbook.py | 9 +++++++-- plugins/modules/azure_rm_automationrunbook_info.py | 9 ++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/plugins/modules/azure_rm_automationrunbook.py b/plugins/modules/azure_rm_automationrunbook.py index 9cc842038..5f4cc10b1 100644 --- a/plugins/modules/azure_rm_automationrunbook.py +++ b/plugins/modules/azure_rm_automationrunbook.py @@ -32,6 +32,10 @@ - The name of the automation account. type: str required: True + location: + description: + - The location of the automation runbook. + type: str description: description: - Sets the description. @@ -169,6 +173,7 @@ returned: always sample: Fred-sun last_modified_time: + description: - The last person to update the resource. type: str returned: always @@ -181,13 +186,13 @@ sample: 3 log_progress: description: - - Wether show progress log option.. + - Whether show progress log option. type: bool returned: always sample: True log_verbose: description: - - Wether show verbose log option. + - Whether show verbose log option. type: bool returned: always sample: True diff --git a/plugins/modules/azure_rm_automationrunbook_info.py b/plugins/modules/azure_rm_automationrunbook_info.py index be4d62a60..66bf13011 100644 --- a/plugins/modules/azure_rm_automationrunbook_info.py +++ b/plugins/modules/azure_rm_automationrunbook_info.py @@ -26,6 +26,7 @@ description: - The name of the automation account. type: str + required: True name: description: - The name of the automation runbook. @@ -37,6 +38,7 @@ extends_documentation_fragment: - azure.azcollection.azure + - azure.azcollection.azure_tags author: - Fred Sun (@Fred-sun) @@ -115,6 +117,7 @@ returned: always sample: Fred-sun last_modified_time: + description: - The last person to update the resource. type: str returned: always @@ -127,13 +130,13 @@ sample: 3 log_progress: description: - - Wether show progress log option.. + - Whether show progress log option. type: bool returned: always sample: True log_verbose: description: - - Wether show verbose log option. + - Whether show verbose log option. type: bool returned: always sample: True @@ -203,7 +206,7 @@ def __init__(self): self.automation_account_name = None self.show_content = None - super(AzureRMAutomationRunbookInfo, self).__init__(self.module_arg_spec, supports_tags=True) + super(AzureRMAutomationRunbookInfo, self).__init__(self.module_arg_spec, supports_check_mode=True, supports_tags=True) def exec_module(self, **kwargs):