Fix step_config output which is str not list
The step_config from role_data is a string and not a list, the current step_config.pp is broken Closes-Bug: #1723108 Change-Id: Ia91eee6d810425ecd332883785b0f6aa3c482bb8
This commit is contained in:
parent
8bbee5e97e
commit
369de46742
|
@ -186,9 +186,7 @@ class Config(object):
|
|||
elif config == 'step_config':
|
||||
filepath = os.path.join(role_path, 'step_config.pp')
|
||||
with self._open_file(filepath) as step_config:
|
||||
step_config.write('\n'.join(step for step in
|
||||
role[config]
|
||||
if step is not None))
|
||||
step_config.write(role[config])
|
||||
else:
|
||||
if 'upgrade_tasks' in config:
|
||||
filepath = os.path.join(role_path, '%s_playbook.yaml' %
|
||||
|
|
Loading…
Reference in New Issue