diff options
Diffstat (limited to 'lib/chef/config_fetcher.rb')
-rw-r--r-- | lib/chef/config_fetcher.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/chef/config_fetcher.rb b/lib/chef/config_fetcher.rb index ac6bdc2249..13f9fc3825 100644 --- a/lib/chef/config_fetcher.rb +++ b/lib/chef/config_fetcher.rb @@ -12,6 +12,14 @@ class Chef @config_location = config_location end + def expanded_path + if config_location.nil? || remote_config? + config_location + else + File.expand_path(config_location) + end + end + def fetch_json config_data = read_config begin |