Revert "Add ability to test model against Reclass source code"
This reverts commit d54f60f15271eb851db13f316cc771d465c44b4c.
Change-Id: I9ab85faadd0af7d9fbcfbc6b3a7778467e2ea938
diff --git a/src/com/mirantis/mk/Common.groovy b/src/com/mirantis/mk/Common.groovy
index 95a96c3..54eb85a 100644
--- a/src/com/mirantis/mk/Common.groovy
+++ b/src/com/mirantis/mk/Common.groovy
@@ -888,7 +888,7 @@
/**
* Ugly processing basic funcs with /etc/apt
- * @param configYaml YAML text or Map
+ * @param configYaml
* Example :
configYaml = '''
---
@@ -907,12 +907,7 @@
*/
def debianExtraRepos(configYaml) {
- def config = null
- if (configYaml instanceof String) {
- config = readYaml text: configYaml
- } else {
- config = configYaml
- }
+ def config = readYaml text: configYaml
if (config.get('repo', false)) {
for (String repo in config['repo'].keySet()) {
source = config['repo'][repo]['source']