summaryrefslogtreecommitdiffstats
path: root/onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib
diff options
context:
space:
mode:
authorvv770d <vv770d@att.com>2021-03-12 21:34:17 +0000
committervv770d <vv770d@att.com>2021-03-12 21:34:24 +0000
commitad98c5f8850ffa031882e90b4f081c7f5e7c1709 (patch)
tree735ec5378f92041e83e9caccc59fe7dfbb0d2978 /onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib
parentdaa42a9a8a4bfa7e9ba6f6ac39922178f2766ee3 (diff)
Fix bas64 encoding
Change-Id: Ia92476d3cedc187740e35a9172827b605e7ed7cf Signed-off-by: vv770d <vv770d@att.com> Issue-ID: DCAEGEN2-2671
Diffstat (limited to 'onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib')
-rw-r--r--onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/policies_output.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/policies_output.py b/onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/policies_output.py
index 0034b9c..22f5907 100644
--- a/onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/policies_output.py
+++ b/onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/policies_output.py
@@ -1,5 +1,5 @@
# ================================================================================
-# Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
+# Copyright (c) 2019-2021 AT&T Intellectual Property. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -57,7 +57,7 @@ class PoliciesOutput(object):
service_component_name, quote(key or "")
)
if value:
- return {"KV": {"Verb": verb, "Key": key, "Value": base64.b64encode(value)}}
+ return {"KV": {"Verb": verb, "Key": key, "Value": base64.b64encode(value.encode("utf8")).decode("utf8")}}
return {"KV": {"Verb": verb, "Key": key}}