From 3d7128c55dc603c469745de1bd12f55e70710e35 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Wed, 28 Nov 2018 15:55:21 +0100 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. Change-Id: I6c44eaca24fb8aed538da9064fe91e40786216b2 --- lib/puppet/provider/cinder.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/puppet/provider/cinder.rb b/lib/puppet/provider/cinder.rb index 52371030..5f756a56 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'