diff options
author | Tobias Rueetschi <tr@brief.li> | 2016-06-10 12:43:39 +0200 |
---|---|---|
committer | Tobias Rueetschi <tr@brief.li> | 2016-08-29 09:11:56 +0200 |
commit | 529eed2fe0eecf1c092db1e718bdc5c999865b6b (patch) | |
tree | 4a4fff881fe640a6ba57b1c5d3450768f9b5f5ac /univention | |
parent | f4f218005a5e85ad2c60964adc3e6ce020419a0d (diff) | |
download | ansible-modules-extras-529eed2fe0eecf1c092db1e718bdc5c999865b6b.tar.gz |
univention udm_share: add required_if to the API
Diffstat (limited to 'univention')
-rw-r--r-- | univention/udm_share.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/univention/udm_share.py b/univention/udm_share.py index 2181b40f..44020c05 100644 --- a/univention/udm_share.py +++ b/univention/udm_share.py @@ -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'] |