Merge "Remove printing the introspection status" into stable/pike
This commit is contained in:
commit
1023935291
|
@ -145,7 +145,6 @@ def introspect_manageable_nodes(clients, **workflow_input):
|
|||
print("Waiting for introspection to finish...")
|
||||
|
||||
errors = []
|
||||
successful_node_uuids = set()
|
||||
|
||||
with tripleoclients.messaging_websocket(queue_name) as ws:
|
||||
execution = base.start_workflow(
|
||||
|
@ -164,16 +163,8 @@ def introspect_manageable_nodes(clients, **workflow_input):
|
|||
if payload['status'] == 'SUCCESS':
|
||||
introspected_nodes = payload['introspected_nodes'] or {}
|
||||
for node_uuid, status in introspected_nodes.items():
|
||||
if status['error'] is None:
|
||||
print(("Introspection for UUID {0} finished "
|
||||
"successfully.").format(node_uuid))
|
||||
successful_node_uuids.add(node_uuid)
|
||||
else:
|
||||
print(("Introspection for UUID {0} finished with error"
|
||||
": {1}").format(node_uuid, status['error']))
|
||||
if status['error'] is not None:
|
||||
errors.append("%s: %s" % (node_uuid, status['error']))
|
||||
if not introspected_nodes:
|
||||
print("No nodes in manageable state found for introspection.")
|
||||
else:
|
||||
raise exceptions.IntrospectionError(
|
||||
'Exception introspecting nodes: {}'.format(payload['message']))
|
||||
|
|
Loading…
Reference in New Issue