fix frappy command and usage message
This commit is contained in:
13
commands.py
13
commands.py
@@ -80,18 +80,13 @@ def frappy_start(**services):
|
||||
frappy_config = session.devices.get('frappy_config')
|
||||
for service in SERVICES:
|
||||
if services.get(service) == '':
|
||||
seaconn = session.devices.get('seaconn')
|
||||
if seaconn and seaconn._attached_secnode:
|
||||
seaconn.communicate('frappy_remove %s' % service)
|
||||
seaconn = session.devices.get('seaconn')
|
||||
if seaconn and seaconn._attached_secnode:
|
||||
seaconn.communicate('frappy_remove %s' % service)
|
||||
used_cfg = {}
|
||||
# check for duplication of cfgs
|
||||
for service in SERVICES:
|
||||
cfginfo = services.get(service)
|
||||
|
||||
all_cfg = {}
|
||||
new_cfg = []
|
||||
remove_cfg = []
|
||||
add_setups = []
|
||||
for service in SERVICES:
|
||||
secnode = session.devices.get('se_' + service)
|
||||
cfginfo = services.get(service)
|
||||
@@ -103,9 +98,9 @@ def frappy_start(**services):
|
||||
else:
|
||||
if cfginfo:
|
||||
new_cfg.append((service, secnode, cfginfo))
|
||||
all_cfg[service] = cfginfo
|
||||
else:
|
||||
remove_cfg.append(secnode)
|
||||
all_cfg[service] = cfginfo
|
||||
if secnode:
|
||||
secnode('')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user