Details
-
Type:
Bug
-
Status:
Fix Provided
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 6.16.0
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:
RHEL5, ruby 1.8.5 (2006-08-25) [x86_64-linux], Ohai, version 0.3.2
Description
Running ohai from the command line with the -d option does not include plugins found in the directory if the dir argument ends with a slash, i.e.
$ ohai -d /etc/ohai/plugins/
does not load the plugins in /etc/ohai/plugins directory while
$ ohai -d /etc/ohai/plugins
loads them succesfully
Issue Links
- is duplicated by
-
OHAI-231
ohai -d /some/directory/ with trailing slash does not work
-
I've provided a fix for this here :
https://github.com/opscode/ohai/pull/117
Feel free to test and merge if you like it.