Skip to content

Commit

Permalink
fix rubocop linting
Browse files Browse the repository at this point in the history
  • Loading branch information
C24-AK committed Jun 5, 2024
1 parent b7fe6fb commit 81f8c25
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/facter/vault_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
#
Facter.add(:vault_version) do
setcode do

Check failure on line 8 in lib/facter/vault_version.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation. (https://rubystyle.guide#spaces-indentation)
if Facter::Util::Resolution.which('vault')
vault_server_version_output = Facter::Util::Resolution.exec('vault version')
match = vault_server_version_output.match(%r{Vault v(\d+\.\d+\.\d+)})
match ? match.captures.first : nil
end
if Facter::Util::Resolution.which('vault')

Check failure on line 9 in lib/facter/vault_version.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation. (https://rubystyle.guide#spaces-indentation)
vault_server_version_output = Facter::Util::Resolution.exec('vault version')

Check failure on line 10 in lib/facter/vault_version.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation. (https://rubystyle.guide#spaces-indentation)
match = vault_server_version_output.match(%r{Vault v(\d+\.\d+\.\d+)})
match&.captures.first

Check failure on line 12 in lib/facter/vault_version.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Lint/SafeNavigationChain: Do not chain ordinary method call after safe navigation operator.
end
end
end

end

0 comments on commit 81f8c25

Please sign in to comment.