summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuique Llorente <ellorent@redhat.com>2018-11-08 13:02:14 +0100
committerQuique Llorente <ellorent@redhat.com>2018-11-08 13:02:14 +0100
commit294969926fb689585765c01aab378ede6dd2b3f0 (patch)
tree69238f16d5b672ccaf154e38b052fa81a3e9ab40
parent73e2125532a6d68dbd5d8a4e64a043de859eb853 (diff)
Added missing json 'encode' function
At python3 strings are not byte arrays, we have to encode them. Change-Id: Ia9254fdeab853ab663d93973dc1fae1e5dbc26ab
Notes
Notes (review): Code-Review+1: Alex Schultz <aschultz@redhat.com> Code-Review+2: Thomas Herve <therve@redhat.com> Workflow+1: Thomas Herve <therve@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 09 Nov 2018 12:55:07 +0000 Reviewed-on: https://review.openstack.org/616528 Project: openstack/heat-agents Branch: refs/heads/master
-rwxr-xr-xheat-config/os-refresh-config/configure.d/55-heat-config3
1 files changed, 2 insertions, 1 deletions
diff --git a/heat-config/os-refresh-config/configure.d/55-heat-config b/heat-config/os-refresh-config/configure.d/55-heat-config
index 5baa880..25659c2 100755
--- a/heat-config/os-refresh-config/configure.d/55-heat-config
+++ b/heat-config/os-refresh-config/configure.d/55-heat-config
@@ -187,7 +187,8 @@ def invoke_hook(c, log):
187 stdin=subprocess.PIPE, 187 stdin=subprocess.PIPE,
188 stdout=subprocess.PIPE, 188 stdout=subprocess.PIPE,
189 stderr=subprocess.PIPE) 189 stderr=subprocess.PIPE)
190 stdout, stderr = subproc.communicate(input=json.dumps(signal_data)) 190 stdout, stderr = subproc.communicate(
191 input=json.dumps(signal_data).encode('utf-8', 'replace'))
191 192
192 log.info(stdout) 193 log.info(stdout)
193 194