Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make sure attributes are strings #22

Merged
merged 1 commit into from
Oct 20, 2017
Merged

make sure attributes are strings #22

merged 1 commit into from
Oct 20, 2017

Conversation

arlimus
Copy link
Member

@arlimus arlimus commented Oct 20, 2017

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)

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)
```
@chris-rock chris-rock merged commit f69f1f5 into master Oct 20, 2017
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants