Skip to content
Snippets Groups Projects
Commit c212b435 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

ipatopologysegment: Fail for missing entry with reinitialized


Currently it is ignored if the entry for reinitialized can not be found if
the name or left and right are not correct. Now there is a failure in this
case.

Fixes: #107 (Reinitialize are failed to find the node in ipatopology ..)
Signed-off-by: default avatarThomas Woerner <twoerner@redhat.com>
parent f7866586
No related branches found
No related tags found
No related merge requests found
...@@ -311,6 +311,18 @@ def main(): ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment