diff options
author | evasquez <eric.vasquez@calxeda.com> | 2013-08-26 15:12:50 -0500 |
---|---|---|
committer | evasquez <eric.vasquez@calxeda.com> | 2013-08-26 15:12:50 -0500 |
commit | 3a8ee1d146885a3978be52a2304966676b65afa7 (patch) | |
tree | 38aaf1da9c929a81b046749ce77702fe5f178c63 | |
parent | 9be00de74e3f8c5e62c50b52fd0336098d1f98ca (diff) | |
download | cxmanage-3a8ee1d146885a3978be52a2304966676b65afa7.tar.gz |
nojira: fixed pylint warns.
-rw-r--r-- | cxmanage/commands/fru_version.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/cxmanage/commands/fru_version.py b/cxmanage/commands/fru_version.py index 02ea0eb..1dd318c 100644 --- a/cxmanage/commands/fru_version.py +++ b/cxmanage/commands/fru_version.py @@ -1,3 +1,5 @@ +"""Calxeda: fru_version.py """ + # Copyright (c) 2013, Calxeda Inc. # @@ -38,32 +40,32 @@ def node_fru_version_command(args): tftp = get_tftp(args) nodes = get_nodes(args, tftp) results, errors = run_command(args, nodes, 'get_node_fru_version') - + # Print results if we were successful if results: node_strings = get_node_strings(args, results, justify=True) for node in nodes: print("%s: %s" % (node_strings[node], results[node])) - - print("") # For readability + + print("") # For readability if not args.quiet and errors: print('Some errors occured during the command.\n') -def slot_fru_version_command(args): +def slot_fru_version_command(args): """Get the slot FRU version for each node. """ tftp = get_tftp(args) nodes = get_nodes(args, tftp) results, errors = run_command(args, nodes, 'get_slot_fru_version') - + # Print results if we were successful - if results: + if results: node_strings = get_node_strings(args, results, justify=True) for node in nodes: print("%s: %s" % (node_strings[node], results[node])) - print("") # For readability + print("") # For readability if not args.quiet and errors: print('Some errors occured during the command.\n') |