Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
haidangwa committed Mar 15, 2021
1 parent fb7927b commit 192ce5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2020-06-30 20:30:26 -0700 using RuboCop version 0.75.1.
# on 2021-03-15 22:17:31 UTC using RuboCop version 1.7.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
---
ChefCorrectness/NodeNormal:
Chef/Correctness/NodeNormal:
Exclude:
- '**/metadata.rb'
- '**/Berksfile'
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This file is used to list changes made in each version of the splunk cookbook.

## Unreleased
- Fixes Issue [#204](https://github.com/sous-chefs/chef-splunk/issues/204)

## 7.2.0 - *2021-03-12*

Expand Down
2 changes: 1 addition & 1 deletion libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def splunk_auth(auth)

def splunk_login_successful?
return false unless splunk_installed?
login = shell_out(splunk_cmd(%w(login -auth node.run_state['splunk_auth_info'])))
login = shell_out(splunk_cmd(['login', '-auth', node.run_state['splunk_auth_info']]))
login.stderr.strip.empty? && login.stdout.strip.empty? && login.exitstatus == 0
end

Expand Down

0 comments on commit 192ce5f

Please sign in to comment.