Skip to content

Commit

Permalink
Updated links message
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftyos committed Dec 1, 2021
1 parent e19b1ca commit 4562f40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pycli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ def status(show_mobiles, no_summary, full, endpoint, failed_only):
if 'nio_inbound' in node.keys():
if node['nio_inbound'] != node_in_links:
is_okay = False
issues.append(f"NIO and P2P System reporting different num incoming links. NIO: {node['nio_inbound']} P2P: {node_in_links}")
issues.append(f"Different num in links reported. NIO: {node['nio_inbound']} P2P: {node_in_links} Diff: {node['nio_inbound'] - node_in_links}")

if node['nio_outbound'] != node_out_links:
is_okay = False
issues.append(f"NIO and P2P System reporting different num out links. NIO: {node['nio_outbound']} P2P: {node_out_links}")
issues.append(f"Different num out links reported. NIO: {node['nio_outbound']} P2P: {node_out_links} Diff: {node['nio_outbound'] - node_out_links}")

issues_string = 'Issues: ' + ', '.join(issues) if len(issues) != 0 else ''

Expand Down

0 comments on commit 4562f40

Please sign in to comment.