1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
Subject: [PATCH] Add File.expand_path to cinder.rb
It happened to me that a few times, puppet cannot load cinder.rb.
This should fix it.
Author: Thomas Goirand <zigo@debian.org>
Date: Wed, 28 Nov 2018 15:55:21 +0100
Change-Id: I6c44eaca24fb8aed538da9064fe91e40786216b2
Forwarded: https://review.openstack.org/#/c/620618/
Last-Update: 2018-11-28
diff --git a/lib/puppet/provider/cinder.rb b/lib/puppet/provider/cinder.rb
index 5237103..5f756a5 100644
--- a/lib/puppet/provider/cinder.rb
+++ b/lib/puppet/provider/cinder.rb
@@ -1,3 +1,5 @@
+File.expand_path('../../../../openstacklib/lib', File.dirname(__FILE__)).tap { |dir| $LOAD_PATH.unshift(dir) unless $LOAD_PATH.include?(dir) }
+
require 'puppet/util/inifile'
require 'puppet/provider/openstack'
require 'puppet/provider/openstack/auth'
--
2.11.0
|