rohit-kb commented on code in PR #4162:
URL: https://github.com/apache/ozone/pull/4162#discussion_r1065565682
##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/net/NodeSchemaLoader.java:
##########
@@ -227,7 +229,7 @@ private NodeSchemaLoadResult loadSchemaFromYaml(InputStream
schemaFile) {
NodeSchemaLoadResult finalSchema;
try {
- Yaml yaml = new Yaml();
+ Yaml yaml = new Yaml(new SafeConstructor(new LoaderOptions()));
Review Comment:
thanks for the review, looking into it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]