Skip to content

Commit f0581fa

Browse files
committed
Allow unicode value converting Python to YAML
1 parent ea09003 commit f0581fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/python/wlsdeploy/yaml/yaml_translator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2019, 2021, Oracle and/or its affiliates.
2+
Copyright (c) 2019, 2022, Oracle and/or its affiliates.
33
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
55
Module to handle translating between Yaml files and Python dictionaries.
@@ -158,7 +158,7 @@ def convert_scalar_to_java_type(self, py_value):
158158
result = None
159159
elif type(py_value) is bool:
160160
result = JBoolean(py_value is True)
161-
elif type(py_value) is str:
161+
elif type(py_value) in [str, unicode]:
162162
result = JString(py_value)
163163
elif type(py_value) is int:
164164
result = JInteger(py_value)

0 commit comments

Comments
 (0)