Commit 504ba6e6 authored by Marco Mariani's avatar Marco Mariani

pep8

parent 921d9325
...@@ -25,7 +25,7 @@ class ConfigCommand(Command): ...@@ -25,7 +25,7 @@ class ConfigCommand(Command):
ap.add_argument('--cfg', ap.add_argument('--cfg',
help='SlapOS configuration file' help='SlapOS configuration file'
' (default: $%s or %s)' % ' (default: $%s or %s)' %
(self.default_config_var, self.default_config_path)) (self.default_config_var, self.default_config_path))
return ap return ap
def fetch_config(self, args): def fetch_config(self, args):
......
...@@ -171,16 +171,14 @@ def do_show(conf): ...@@ -171,16 +171,14 @@ def do_show(conf):
conn.create_function('md5', 1, lambda s: hashlib.md5(s).hexdigest()) conn.create_function('md5', 1, lambda s: hashlib.md5(s).hexdigest())
print_all = not any( print_all = not any([
[ conf.computers,
conf.computers, conf.software,
conf.software, conf.partitions,
conf.partitions, conf.slaves,
conf.slaves, conf.params,
conf.params, conf.network,
conf.network, ])
]
)
if print_all or conf.computers: if print_all or conf.computers:
print_computer_table(conn) print_computer_table(conn)
...@@ -200,5 +198,3 @@ def do_show(conf): ...@@ -200,5 +198,3 @@ def do_show(conf):
if print_all or conf.network: if print_all or conf.network:
print_network(conn) print_network(conn)
print print
...@@ -41,4 +41,3 @@ class ProxyStartCommand(ConfigCommand): ...@@ -41,4 +41,3 @@ class ProxyStartCommand(ConfigCommand):
conf.setConfig() conf.setConfig()
do_proxy(conf=conf) do_proxy(conf=conf)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment