Tweaking event input

This commit is contained in:
Anton Hvornum 2019-11-29 16:36:43 +01:00
parent 7b1968fa9a
commit 3769a3193b
1 changed files with 3 additions and 3 deletions

View File

@ -1116,9 +1116,9 @@ def run_post_install_steps(*positionals, **kwargs):
## since we set the password as the last step. And then the command itself which will be executed by looking for: ## since we set the password as the last step. And then the command itself which will be executed by looking for:
## [root@<hostname> ~]# ## [root@<hostname> ~]#
defaults = { defaults = {
bytes(f'login:', 'UTF-8') : b'root\n', 'login:' : 'root\n',
#b'Password:' : bytes(args['password']+'\n', 'UTF-8'), #b'Password:' : bytes(args['password']+'\n',
bytes(f'[root@{args["hostname"]} ~]#', 'UTF-8') : bytes(command+'\n', 'UTF-8'), '[root@{args["hostname"]} ~]#' : command+'\n',
} }
if not 'events' in opts: opts['events'] = {} if not 'events' in opts: opts['events'] = {}
events = {**defaults, **opts['events']} events = {**defaults, **opts['events']}