Revert "setMaxAliasesForCollections"
This reverts commit 5808aa5cf4721143182ab1300f2f6b59b6144f18.
Reason for revert: nope
Change-Id: I3a256fcf98180b6f92884aa893a9c8f6449649e6
diff --git a/src/com/mirantis/mcp/Common.groovy b/src/com/mirantis/mcp/Common.groovy
index 1b98f37..b83a714 100644
--- a/src/com/mirantis/mcp/Common.groovy
+++ b/src/com/mirantis/mcp/Common.groovy
@@ -7,7 +7,6 @@
@Grab(group='org.yaml', module='snakeyaml', version='1.17')
import org.yaml.snakeyaml.Yaml
import org.yaml.snakeyaml.DumperOptions
-import org.yaml.snakeyaml.LoaderOptions
/**
* https://issues.jenkins-ci.org/browse/JENKINS-26481
@@ -46,9 +45,7 @@
*/
@NonCPS
def loadYAML(String data) {
- LoaderOptions options = new LoaderOptions()
- options.setMaxAliasesForCollections(100)
- def yaml = new Yaml(options)
+ def yaml = new Yaml()
return yaml.load(data)
}