From 529eed2fe0eecf1c092db1e718bdc5c999865b6b Mon Sep 17 00:00:00 2001
From: Tobias Rueetschi
Date: Fri, 10 Jun 2016 12:43:39 +0200
Subject: [PATCH] univention udm_share: add required_if to the API
---
univention/udm_share.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/univention/udm_share.py b/univention/udm_share.py
index 2181b40f651..44020c05955 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']