Skip to content

Commit 6ffa056

Browse files
committed
Validate should recognize that int can be converted to string
1 parent 40790fb commit 6ffa056

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/python/wlsdeploy/tool/validate/validation_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def is_compatible_data_type(expected_data_type, actual_data_type):
116116
"""
117117
retval = False
118118
if expected_data_type == 'string':
119-
retval = (actual_data_type in ["<type 'str'>", "<type 'long'>", "<type 'float'>", "<type 'unicode'>"])
119+
retval = (actual_data_type in ["<type 'str'>", "<type 'int'>", "<type 'long'>", "<type 'float'>",
120+
"<type 'unicode'>"])
120121
elif expected_data_type == 'integer':
121122
retval = (actual_data_type in ["<type 'int'>", "<type 'long'>", "<type 'str'>", "<type 'unicode'>"])
122123
elif expected_data_type == 'long':

0 commit comments

Comments
 (0)