Fix issue with incorrect evaluation of values as variables
In case when variable value i[1] was populated by reclass
references '${_param:foo}', sed failed with bad substition
error.
Change-Id: Id5b936592d49a3ec2c5c4c716d6d30f73b4b5f07
Fixes: PROD-20205
diff --git a/generate-cookiecutter-products.groovy b/generate-cookiecutter-products.groovy
index a2a4907..0a2888e 100644
--- a/generate-cookiecutter-products.groovy
+++ b/generate-cookiecutter-products.groovy
@@ -223,7 +223,7 @@
}
for (i in common.entries(smc)) {
- sh "sed -i \"s,export ${i[0]}=.*,export ${i[0]}=${i[1]},\" user_data.sh"
+ sh "sed -i 's,export ${i[0]}=.*,export ${i[0]}=${i[1]},' user_data.sh"
}
// create cfg config-drive