mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-06 21:33:14 +00:00
Merge pull request #108 from t-woerner/topologysegment_reinitialize
ipatopologysegment: Fail if given entry can not be found for reinitia…
This commit is contained in:
@@ -311,6 +311,18 @@ def main():
|
||||
|
||||
commands.append(["topologysegment_reinitialize", args,
|
||||
suffix])
|
||||
else:
|
||||
params = []
|
||||
if name is not None:
|
||||
params.append("name=%s" % name)
|
||||
if left is not None:
|
||||
params.append("left=%s" % left)
|
||||
if right is not None:
|
||||
params.append("right=%s" % right)
|
||||
ansible_module.fail_json(
|
||||
msg="No entry '%s' for suffix '%s'" %
|
||||
(",".join(params), suffix))
|
||||
|
||||
else:
|
||||
ansible_module.fail_json(msg="Unkown state '%s'" % state)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user