Skip to content

Commit

Permalink
Use single quotes in case of dashed url.
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Feb 13, 2017
1 parent 7480713 commit d40c349
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/installation/system_roles/handlers.rb
Expand Up @@ -34,7 +34,10 @@ def self.run
log.info("The minion master.conf file does not exist, it will be created")
end
log.info("The controller node for this worker role is: #{master}")
master_conf.master = master
# FIXME: the cobblersettings lense does not support dashes in the url
# without single quotes, we need to use a custom lense for salt conf.
# As Salt can use also 'url' just use in case of dashed.
master_conf.master = master.include?("-") ? "'#{master}'" : master
master_conf.save
end
end
Expand Down

0 comments on commit d40c349

Please sign in to comment.