summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorevasquez <eric.vasquez@calxeda.com>2013-08-26 15:11:01 -0500
committerevasquez <eric.vasquez@calxeda.com>2013-08-26 15:11:01 -0500
commit9be00de74e3f8c5e62c50b52fd0336098d1f98ca (patch)
tree27f6f4fd19be0299887ca1d703542b90e1cf9385
parent3ace51cad09a69766a99c50018c4adc5b2342ab9 (diff)
downloadcxmanage-9be00de74e3f8c5e62c50b52fd0336098d1f98ca.tar.gz
nojira: fixed pylint warns.
-rw-r--r--cxmanage/commands/config.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/cxmanage/commands/config.py b/cxmanage/commands/config.py
index 3d5b060..bbe5256 100644
--- a/cxmanage/commands/config.py
+++ b/cxmanage/commands/config.py
@@ -1,3 +1,6 @@
+"""Calxeda: config.py """
+
+
# Copyright (c) 2012, Calxeda Inc.
#
# All rights reserved.
@@ -28,9 +31,10 @@
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
+
from cxmanage import get_tftp, get_nodes, get_node_strings, run_command
-from cxmanage_api.ubootenv import UbootEnv, validate_boot_args, \
+from cxmanage_api.ubootenv import validate_boot_args, \
validate_pxe_interface
@@ -42,7 +46,7 @@ def config_reset_command(args):
if not args.quiet:
print "Sending config reset command..."
- results, errors = run_command(args, nodes, "config_reset")
+ _, errors = run_command(args, nodes, "config_reset")
if not args.quiet and not errors:
print "Command completed successfully.\n"
@@ -63,7 +67,7 @@ def config_boot_command(args):
if not args.quiet:
print "Setting boot order..."
- results, errors = run_command(args, nodes, "set_boot_order",
+ _, errors = run_command(args, nodes, "set_boot_order",
args.boot_order)
if not args.quiet and not errors:
@@ -73,6 +77,7 @@ def config_boot_command(args):
def config_boot_status_command(args):
+ """Get boot status command."""
tftp = get_tftp(args)
nodes = get_nodes(args, tftp)
@@ -108,7 +113,7 @@ def config_pxe_command(args):
if not args.quiet:
print "Setting pxe interface..."
- results, errors = run_command(args, nodes, "set_pxe_interface",
+ _, errors = run_command(args, nodes, "set_pxe_interface",
args.interface)
if not args.quiet and not errors:
@@ -118,6 +123,7 @@ def config_pxe_command(args):
def config_pxe_status_command(args):
+ """Gets pxe status."""
tftp = get_tftp(args)
nodes = get_nodes(args, tftp)