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:
parent
e35c32c0d7
commit
85f7da9792
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user