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

pep8

parent 921d9325
......@@ -25,7 +25,7 @@ class ConfigCommand(Command):
ap.add_argument('--cfg',
help='SlapOS configuration file'
' (default: $%s or %s)' %
(self.default_config_var, self.default_config_path))
(self.default_config_var, self.default_config_path))
return ap
def fetch_config(self, args):
......
......@@ -171,16 +171,14 @@ def do_show(conf):
conn.create_function('md5', 1, lambda s: hashlib.md5(s).hexdigest())
print_all = not any(
[
conf.computers,
conf.software,
conf.partitions,
conf.slaves,
conf.params,
conf.network,
]
)
print_all = not any([
conf.computers,
conf.software,
conf.partitions,
conf.slaves,
conf.params,
conf.network,
])
if print_all or conf.computers:
print_computer_table(conn)
......@@ -200,5 +198,3 @@ def do_show(conf):
if print_all or conf.network:
print_network(conn)
print
......@@ -41,4 +41,3 @@ class ProxyStartCommand(ConfigCommand):
conf.setConfig()
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