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:
Mathieu Bultel 2017-10-06 16:11:40 +02:00 committed by mathieu bultel
parent 8bbee5e97e
commit 369de46742
1 changed files with 1 additions and 3 deletions

View File

@ -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' %