Project

General

Profile

Revision 71b7fe72

Added by Eric D Helms about 6 years ago

Refs #14616: Use clean bash environment to shell out for puppet (#29)

View differences:

lib/hammer_cli_import/configfile.rb
138 138
        module_name = name
139 139
        pwd = Dir.pwd
140 140
        Dir.chdir(option_working_directory)
141
        gen_cmd = "puppet module generate #{name}"
141
        gen_cmd = "env -i bash -l -c '/usr/bin/puppet module generate #{name}'"
142 142
        Open3.popen3(gen_cmd) do |stdin, stdout, _stderr|
143 143
          begin
144 144
            stdout.sync = true
......
183 183
        module_dir = File.join(option_working_directory, module_name)
184 184
        return nil unless File.exist? module_dir
185 185
        Dir.chdir(module_dir)
186
        gen_cmd = 'puppet module build'
186
        gen_cmd = 'env -i bash -l -c "puppet module build"'
187 187
        Open3.popen3(gen_cmd) do |_stdin, stdout, _stderr|
188 188
          rd = ''
189 189
          begin

Also available in: Unified diff