Skip to content

Commit

Permalink
fix InSpec 1.27.0 Compliance::API use (#251)
Browse files Browse the repository at this point in the history
* Update libraries/compliance.rb to use inspec 1.27.0 API.  Bumped version in metadata.  Fixes #232

Signed-off-by: qubitrenegade <qubitrenegade@gmail.com>

* Pass attributes as a hash, which is what Compliance::API#version expects

Signed-off-by: qubitrenegade <qubitrenegade@gmail.com>

* fixed style error

Signed-off-by: qubitrenegade <qubitrenegade@gmail.com>

* Fixed rubocop error

Signed-off-by: qubitrenegade <qubitrenegade@gmail.com>

* do not update version

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
  • Loading branch information
chris-rock authored Jun 29, 2017
1 parent ba845f8 commit f264436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/compliance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def login_to_compliance(server, user, access_token, refresh_token)
config['server'] = server
config['token'] = access_token
config['insecure'] = true
config['version'] = Compliance::API.version(server, true)
config['version'] = Compliance::API.version({ 'server' => server, 'insecure' => true })
config.store
else
Chef::Log.error msg
Expand Down

0 comments on commit f264436

Please sign in to comment.