mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 06:31:23 -07:00
azure_rm_dnsrecordset rewrite (#30449)
As-merged, had several issues that prevented idempotent usage. Some args were defined at the wrong UI level. Dual-state args didn't match up with typical Ansible UI.
This commit is contained in:
parent
397918435b
commit
6b5b465125
5 changed files with 295 additions and 495 deletions
|
@ -163,7 +163,7 @@ class AzureRMModuleBase(object):
|
|||
def __init__(self, derived_arg_spec, bypass_checks=False, no_log=False,
|
||||
check_invalid_arguments=True, mutually_exclusive=None, required_together=None,
|
||||
required_one_of=None, add_file_common_args=False, supports_check_mode=False,
|
||||
required_if=None, supports_tags=True, facts_module=False):
|
||||
required_if=None, supports_tags=True, facts_module=False, skip_exec=False):
|
||||
|
||||
merged_arg_spec = dict()
|
||||
merged_arg_spec.update(AZURE_COMMON_ARGS)
|
||||
|
@ -270,8 +270,9 @@ class AzureRMModuleBase(object):
|
|||
if self.module.params.get('tags'):
|
||||
self.validate_tags(self.module.params['tags'])
|
||||
|
||||
res = self.exec_module(**self.module.params)
|
||||
self.module.exit_json(**res)
|
||||
if not skip_exec:
|
||||
res = self.exec_module(**self.module.params)
|
||||
self.module.exit_json(**res)
|
||||
|
||||
def check_client_version(self, client_name, client_version, expected_version):
|
||||
# Ensure Azure modules are at least 2.0.0rc5.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue