Commit f69f1f5
make sure attributes are strings (#22)
This currently breaks inspec check when the default attribute isn't found and becomes nil.
```
Default postgresql configuration directory: does not exist. Postgresql may not be installed or we've misidentified the configuration directory.
Default postgresql data directory: does not exist. Postgresql may not be installed or we've misidentified the data directory.
/home/travis/.rvm/gems/ruby-2.3.3/bundler/gems/inspec-78c2a55945cb/lib/resources/postgres_conf.rb:29:in `dirname': can't convert Inspec::Attribute::DEFAULT_ATTRIBUTE to String (Inspec::Attribute::DEFAULT_ATTRIBUTE#to_str gives Inspec::Attribute::DEFAULT_ATTRIBUTE) (TypeError)
```1 parent 0004cd0 commit f69f1f5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments