Merge "Fix step_config output which is str not list"

This commit is contained in:
Zuul 2017-12-05 19:02:05 +00:00 committed by Gerrit Code Review
commit 1dcdf6cec9
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' %