mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-devtest
synced 2026-01-15 10:23:32 +01:00
be.shellcmd: Support cmd.xxx options in --be-opts
Allow to override the default shell commands used to start and stop the machine with custom commands, as in --be-opts="cmd.request-power-on='/usr/bin/power.sh something'" Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
3c9c5f1769
commit
dcb3fc3cab
1 changed files with 3 additions and 0 deletions
|
|
@ -19,6 +19,9 @@ class Machine(MachineBase): # export
|
||||||
'request-power-on': "jw-switch-allesnix.sh on",
|
'request-power-on': "jw-switch-allesnix.sh on",
|
||||||
'cleanup' : None
|
'cleanup' : None
|
||||||
}
|
}
|
||||||
|
for key in self.__cmds.keys():
|
||||||
|
if 'cmd.' + key in env.be_opts.keys():
|
||||||
|
self.__cmds[key] = env.be_opts['cmd.' + key]
|
||||||
|
|
||||||
async def __run(self, phase):
|
async def __run(self, phase):
|
||||||
cmd = None
|
cmd = None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue