summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--omnibus_overrides.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/omnibus_overrides.rb b/omnibus_overrides.rb
index b66e07fb1a..6cd8020eeb 100644
--- a/omnibus_overrides.rb
+++ b/omnibus_overrides.rb
@@ -27,4 +27,10 @@ override "openssl", version: "1.0.2q"
# this pins the ohai omnibus definition ohai version to the same version that's
# in the gemfile.lock, which is what the chef defition will end up using. If we
# don't pin in this file we get master, which isn't the released version (usually)
-override "ohai", version: "#{::File.readlines("Gemfile.lock", File.expand_path(File.dirname(__FILE__))).find { |l| l =~ /^\s+ohai \((\d+\.\d+\.\d+)\)/ }; 'v' + $1}" # rubocop: disable Layout/SpaceInsideStringInterpolation
+gemfile_lock = File.join(File.expand_path(File.dirname(__FILE__)), "Gemfile.lock")
+override "ohai", version: "#{::File.readlines(gemfile_lock).find { |l| l =~ /^\s+ohai \((\d+\.\d+\.\d+)\)/ }; 'v' + $1}" # rubocop: disable Layout/SpaceInsideStringInterpolation
+
+puts "DEBUG: The file we're in is #{__FILE__}"
+puts "DEBUG: The dir we're in is #{File.expand_path(File.dirname(__FILE__))}"
+puts "DEBUG: The gemfile.lock we're going to read is #{gemfile_lock}"
+puts "DEBUG: #{::File.readlines(gemfile_lock)}"