mirror of
https://github.com/zahodi/ansible-mikrotik.git
synced 2025-06-23 18:28:38 +02:00
add check mode to dhcp_server
This commit is contained in:
parent
7ce1cae7ad
commit
48f593bae2
1 changed files with 3 additions and 1 deletions
|
@ -71,7 +71,8 @@ def main():
|
||||||
choices = ['present', 'absent'],
|
choices = ['present', 'absent'],
|
||||||
type = 'str'
|
type = 'str'
|
||||||
),
|
),
|
||||||
)
|
),
|
||||||
|
supports_check_mode=True
|
||||||
)
|
)
|
||||||
|
|
||||||
idempotent_parameter = None
|
idempotent_parameter = None
|
||||||
|
@ -96,6 +97,7 @@ def main():
|
||||||
desired_params = params['settings'],
|
desired_params = params['settings'],
|
||||||
idempotent_param = idempotent_parameter,
|
idempotent_param = idempotent_parameter,
|
||||||
api_path = '/ip/' + str(params['parameter']),
|
api_path = '/ip/' + str(params['parameter']),
|
||||||
|
check_mode = module.check_mode,
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue