Skip to content

Commit

Permalink
Merge pull request voxpupuli#285 from Ensighten/remove_error
Browse files Browse the repository at this point in the history
Remove puppet error when ACLs cannot be retrieved
  • Loading branch information
solarkennedy authored Oct 5, 2016
2 parents 3e0e0ba + 54606e3 commit 84c0fad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/puppet/provider/consul_acl/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def self.list_resources(acl_api_token, port, hostname, protocol, tries)
if res.code == '200'
acls = JSON.parse(res.body)
else
raise(Puppet::Error,"Cannot retrieve ACLs: invalid return code #{res.code} uri: #{path} body: #{req.body}")
Puppet.warning("Cannot retrieve ACLs: invalid return code #{res.code} uri: #{path} body: #{req.body}")
return {}
end

nacls = acls.collect do |acl|
Expand Down

0 comments on commit 84c0fad

Please sign in to comment.