diff --git a/app/models/miq_cockpit_ws_worker/runner.rb b/app/models/miq_cockpit_ws_worker/runner.rb index f91d9ccaa6b..29cc3f0935a 100644 --- a/app/models/miq_cockpit_ws_worker/runner.rb +++ b/app/models/miq_cockpit_ws_worker/runner.rb @@ -148,7 +148,9 @@ def cockpit_ws_run "XDG_CONFIG_DIRS" => cockpit_ws.config_dir, "DRB_URI" => @drb_uri } - stdin, stdout, stderr, wait_thr = Open3.popen3(env, *cockpit_ws.command(BINDING_ADDRESS)) + Bundler.with_clean_env do + stdin, stdout, stderr, wait_thr = Open3.popen3(env, *cockpit_ws.command(BINDING_ADDRESS), :unsetenv_others => true) + end stdin.close _log.info("#{log_prefix} cockpit-ws process started - pid=#{@pid}")