Enable log_level and colorize for salt masterless

This commit is contained in:
Aneesh Agrawal 2015-11-02 20:34:14 -05:00
parent 73edde7356
commit 84408c1682
1 changed files with 1 additions and 2 deletions

View File

@ -329,11 +329,10 @@ module VagrantPlugins
def call_masterless def call_masterless
@machine.env.ui.info "Calling state.highstate in local mode... (this may take a while)" @machine.env.ui.info "Calling state.highstate in local mode... (this may take a while)"
cmd = "salt-call state.highstate --local" cmd = "salt-call state.highstate --local#{get_loglevel}#{get_colorize}#{get_pillar}"
if @config.minion_id if @config.minion_id
cmd += " --id #{@config.minion_id}" cmd += " --id #{@config.minion_id}"
end end
cmd += " -l debug#{get_pillar}"
@machine.communicate.sudo(cmd) do |type, data| @machine.communicate.sudo(cmd) do |type, data|
if @config.verbose if @config.verbose
@machine.env.ui.info(data) @machine.env.ui.info(data)