univention udm_share: add required_if to the API

This commit is contained in:
Tobias Rueetschi 2016-06-10 12:43:39 +02:00 committed by Matt Clay
parent bba8cdf0af
commit b38979321d

View file

@ -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']