fix supervisord export for environments containing commas

This commit is contained in:
Raphael Randschau
2012-04-20 09:11:25 +02:00
parent 93cdc31be0
commit dbda63263b
3 changed files with 19 additions and 1 deletions
+8
View File
@@ -23,4 +23,12 @@ class Foreman::Export::Supervisord < Foreman::Export::Base
write_file "#{location}/#{app}.conf", app_config
end
def wrap_environment env
if env.index(',').nil?
env
else
"\"#{env}\""
end
end
end