summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorevasquez <eric.vasquez@calxeda.com>2013-08-26 15:12:50 -0500
committerevasquez <eric.vasquez@calxeda.com>2013-08-26 15:12:50 -0500
commit3a8ee1d146885a3978be52a2304966676b65afa7 (patch)
tree38aaf1da9c929a81b046749ce77702fe5f178c63
parent9be00de74e3f8c5e62c50b52fd0336098d1f98ca (diff)
downloadcxmanage-3a8ee1d146885a3978be52a2304966676b65afa7.tar.gz
nojira: fixed pylint warns.
-rw-r--r--cxmanage/commands/fru_version.py16
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')