We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea09003 commit f0581faCopy full SHA for f0581fa
core/src/main/python/wlsdeploy/yaml/yaml_translator.py
@@ -1,5 +1,5 @@
1
"""
2
-Copyright (c) 2019, 2021, Oracle and/or its affiliates.
+Copyright (c) 2019, 2022, Oracle and/or its affiliates.
3
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
4
5
Module to handle translating between Yaml files and Python dictionaries.
@@ -158,7 +158,7 @@ def convert_scalar_to_java_type(self, py_value):
158
result = None
159
elif type(py_value) is bool:
160
result = JBoolean(py_value is True)
161
- elif type(py_value) is str:
+ elif type(py_value) in [str, unicode]:
162
result = JString(py_value)
163
elif type(py_value) is int:
164
result = JInteger(py_value)
0 commit comments