Remove the duplicated success message
The workflow now sends a success message the following message. So when tripleoclient prints a similar message it is then duplicated. "Successfully introspected all nodes." Closes-Bug: #1716855 Change-Id: Ia4c88459a1a95f7f4e5a57a57a9ca8265c6e01f7
This commit is contained in:
parent
a9b5d75ef1
commit
cd4f49ad4b
|
@ -122,15 +122,11 @@ def introspect(clients, **workflow_input):
|
|||
if 'message' in payload:
|
||||
print(payload['message'])
|
||||
|
||||
if payload['status'] == 'SUCCESS':
|
||||
print('Successfully introspected all nodes.')
|
||||
else:
|
||||
if payload['status'] != 'SUCCESS':
|
||||
raise exceptions.IntrospectionError(
|
||||
"Introspection completed with errors:\n%s" % '\n'
|
||||
.join(msg for msg in payload['message'] if msg))
|
||||
|
||||
print("Introspection completed.")
|
||||
|
||||
|
||||
def introspect_manageable_nodes(clients, **workflow_input):
|
||||
"""Introspect all manageable nodes
|
||||
|
|
Loading…
Reference in New Issue