univention udm_share: add required_if to the API
This commit is contained in:
parent
bba8cdf0af
commit
b38979321d
1 changed files with 4 additions and 1 deletions
|
@ -123,7 +123,10 @@ def main():
|
||||||
choices=['present', 'absent'],
|
choices=['present', 'absent'],
|
||||||
type='str')
|
type='str')
|
||||||
),
|
),
|
||||||
supports_check_mode=True
|
supports_check_mode=True,
|
||||||
|
required_if = ([
|
||||||
|
('state', 'present', ['path', 'host', 'sambaName'])
|
||||||
|
])
|
||||||
)
|
)
|
||||||
name = module.params['name']
|
name = module.params['name']
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
|
|
Loading…
Reference in a new issue