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