Skip to content

Commit

Permalink
Fix typo error
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Charreau committed Dec 20, 2023
1 parent 6e1ad26 commit b4250f7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/puppet/provider/elastic_stack_keystore/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
mk_resource_methods

def self.defaults_dir
@defaults_dir ||= case #{Facter.value(:os)['family']}
@defaults_dir ||= case Facter.value(:os)['family']
when 'RedHat'
'/etc/sysconfig'
else
Expand All @@ -17,7 +17,7 @@ def self.defaults_dir
end

def self.root_dir
@root_dir ||= case #{Facter.value(:os)['family']}
@root_dir ||= case Facter.value(:os)['family']
when 'OpenBSD'
'/usr/local'
else
Expand Down Expand Up @@ -269,11 +269,7 @@ def flush

keystore_settings = self.class.run_keystore(['list'], service).split("\n").each do |setting|
settings = {}
if service == 'kibana'
settings[setting] = ''
else
settings[setting] = self.class.run_keystore(['show', setting], service)
end
settings[setting] = service == 'kibana' ? '' : self.class.run_keystore(['show', setting], service)
settings
end

Expand Down

0 comments on commit b4250f7

Please sign in to comment.