lib/build-cloud.rb in build-cloud-0.0.22 vs lib/build-cloud.rb in build-cloud-0.0.23
- old
+ new
@@ -233,10 +233,10 @@
while /%\{(?<var>[^\|\}]*)(?:\|{2}(?<default>[^\}]*))?\}/ =~ h
# $& is the whole matched expression above, $MATCH when using English
exp = $&
- val = @config.fetch(var.to_sym, default)
+ val = @config.fetch(var.to_sym, default).to_s
raise "Attempt to interpolate with non-existant key '#{var}' with no default value set" if val.nil?
h.gsub!(exp, val)
end