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
(cherry picked from commit 85f7da9792
)
This commit is contained in:
parent
687250a989
commit
f956996b61
|
@ -141,7 +141,7 @@ class ActionModule(action.ActionBase):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
result_file = os.path.join(local_tempdir, 'source')
|
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)
|
f.write(full_source)
|
||||||
|
|
||||||
new_task = self._task.copy()
|
new_task = self._task.copy()
|
||||||
|
|
|
@ -85,7 +85,7 @@ class ActionModule(action.ActionBase):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
result_file = os.path.join(local_tempdir, 'source')
|
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))
|
f.write(dump(output, default_flow_style=False))
|
||||||
|
|
||||||
new_task = self._task.copy()
|
new_task = self._task.copy()
|
||||||
|
|
Loading…
Reference in New Issue