Fix action_plugins python3 compatibility

Fix filemode in the merge_configs and merge_yaml action plugin to
be compatible with python3

Change-Id: Ief64c5bdcd717141281e23c255a49ec02a96aef2
Closes-Bug: #1820134
This commit is contained in:
Victor Coutellier 2019-03-14 23:33:08 +01:00
parent e35c32c0d7
commit 85f7da9792
2 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ class ActionModule(action.ActionBase):
try:
result_file = os.path.join(local_tempdir, 'source')
with open(result_file, 'wb') as f:
with open(result_file, 'w') as f:
f.write(full_source)
new_task = self._task.copy()

View File

@ -121,7 +121,7 @@ class ActionModule(action.ActionBase):
try:
result_file = os.path.join(local_tempdir, 'source')
with open(result_file, 'wb') as f:
with open(result_file, 'w') as f:
f.write(dump(output, default_flow_style=False))
new_task = self._task.copy()