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

False attribute value is not initializing #138

Closed
devops42 opened this issue May 31, 2017 · 1 comment
Closed

False attribute value is not initializing #138

devops42 opened this issue May 31, 2017 · 1 comment

Comments

@devops42
Copy link

File .kitchen.yml

...
    verifier:
      attributes:
        val_true: true
        val_false: false
...

File test.rb

val_true = attribute('val_true', description: "true value")
val_false = attribute('val_false', description: "false value")

puts "val_true=#{val_true.class}"
puts "val_false=#{val_false.class}"

And output:

val_true=TrueClass
val_false=NilClass

Any ideas why val_false in not initializing as FalseClass?

@devops42 devops42 changed the title False attribute value in not initializing False attribute value is not initializing May 31, 2017
@adamleff
Copy link
Contributor

@devops42, thanks for submitting this issue, and sorry for the delay in responding. I've been able to reproduce this behavior in InSpec core without the use of kitchen-inspec, so I've created a new issue (inspec/inspec#2164) to track this and I'll see if I can't fix it relatively quickly.

I'm closing this issue in favor of the new issue opened in chef/inspec. Thanks!

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

No branches or pull requests

2 participants