diff options
author | James Shubin <james@shubin.ca> | 2014-03-13 15:45:34 -0400 |
---|---|---|
committer | James Shubin <james@shubin.ca> | 2014-03-16 22:39:08 -0400 |
commit | a78ffe5e8fc9f26c92875c3cbbda6830462710c8 (patch) | |
tree | 1bdd94745763dd4b36e98f8d78bdff8f773b955a /lib | |
parent | c7a6ef2c0267540ab2b272872648476255557dc6 (diff) | |
download | puppet-gluster-a78ffe5e8fc9f26c92875c3cbbda6830462710c8.tar.gz puppet-gluster-a78ffe5e8fc9f26c92875c3cbbda6830462710c8.tar.xz puppet-gluster-a78ffe5e8fc9f26c92875c3cbbda6830462710c8.zip |
Small fixes for automatic fsuuid to be more robust.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/facter/gluster_fsuuid.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/facter/gluster_fsuuid.rb b/lib/facter/gluster_fsuuid.rb index 4ed48dc..1f34075 100644 --- a/lib/facter/gluster_fsuuid.rb +++ b/lib/facter/gluster_fsuuid.rb @@ -59,10 +59,14 @@ if not(module_vardir.nil?) and not File.directory?(module_vardir) Dir::mkdir(module_vardir) end +if not(valid_brickdir.nil?) and not File.directory?(valid_brickdir) + Dir::mkdir(valid_brickdir) +end + found = {} # generate uuid and parent directory if they don't already exist... -if not(module_vardir.nil?) and File.directory?(module_vardir) +if not(valid_brickdir.nil?) and File.directory?(valid_brickdir) if not File.directory?(uuiddir) Dir::mkdir(uuiddir) end |