mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-05 14:24:48 +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,
|
commands.append(["topologysegment_reinitialize", args,
|
||||||
suffix])
|
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:
|
else:
|
||||||
ansible_module.fail_json(msg="Unkown state '%s'" % state)
|
ansible_module.fail_json(msg="Unkown state '%s'" % state)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user