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

Error when listing compliance profiles against Automate pre 0.8 #1921

Closed
adamleff opened this issue Jun 12, 2017 · 0 comments · Fixed by #1922
Closed

Error when listing compliance profiles against Automate pre 0.8 #1921

adamleff opened this issue Jun 12, 2017 · 0 comments · Fixed by #1922
Assignees
Labels
Type: Bug Feature not working as expected

Comments

@adamleff
Copy link
Contributor

Description

Ruby stacktrace when running inspec compliance profiles with a pre-0.8.x Automate Server

InSpec and Platform Version

InSpec v1.27.0

Replication Case

  • Set up Automate 0.7.151
  • Install InSpec 1.27.0
  • Run inspec compliance login_automate
  • Run inspec compliance profiles (which will fail)

Possible Solutions

Unknown

Stacktrace

C:/Users/admin-hr/AppData/Local/chefdk/gem/ruby/2.3.0/gems/inspec-1.27.0/lib/bundles/inspec-compliance/api.rb:47:in `[]=': no implicit conversion of String into Integer (TypeError)
        from C:/Users/admin-hr/AppData/Local/chefdk/gem/ruby/2.3.0/gems/inspec-1.27.0/lib/bundles/inspec-compliance/api.rb:47:in `block in profiles'
        from C:/Users/admin-hr/AppData/Local/chefdk/gem/ruby/2.3.0/gems/inspec-1.27.0/lib/bundles/inspec-compliance/api.rb:46:in `each'
        from C:/Users/admin-hr/AppData/Local/chefdk/gem/ruby/2.3.0/gems/inspec-1.27.0/lib/bundles/inspec-compliance/api.rb:46:in `map'
        from C:/Users/admin-hr/AppData/Local/chefdk/gem/ruby/2.3.0/gems/inspec-1.27.0/lib/bundles/inspec-compliance/api.rb:46:in `profiles'
        from C:/Users/admin-hr/AppData/Local/chefdk/gem/ruby/2.3.0/gems/inspec-1.27.0/lib/bundles/inspec-compliance/cli.rb:101:in `profiles'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
        from C:/opscode/chefdk/em
@adamleff adamleff self-assigned this Jun 12, 2017
@adamleff adamleff added the Type: Bug Feature not working as expected label Jun 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant