From 593cdeaca6516f8509596861a12c798299a689aa Mon Sep 17 00:00:00 2001 From: Yuri Rudman Date: Fri, 17 Apr 2020 17:07:46 -0400 Subject: [PATCH] fixed path tp cockpit.conf --- lib/miq_cockpit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/miq_cockpit.rb b/lib/miq_cockpit.rb index 210403d811f5..23fabd9a96e6 100644 --- a/lib/miq_cockpit.rb +++ b/lib/miq_cockpit.rb @@ -71,7 +71,7 @@ def self.url(miq_server, opts, address) def initialize(opts = {}) @opts = opts || {} - @config_dir = File.join(__dir__, "..", "config") + @config_dir = Rails.root.join("config") @cockpit_conf_dir = File.join(@config_dir, "cockpit") FileUtils.mkdir_p(@cockpit_conf_dir) end