aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/facter/lib/facter/dc_suffix.rb4
-rw-r--r--modules/facter/lib/facter/lib_dir.rb4
-rw-r--r--modules/facter/lib/facter/wildcard_sslcert.rb28
-rw-r--r--modules/facter/spec/spec_helper.rb1
4 files changed, 18 insertions, 19 deletions
diff --git a/modules/facter/lib/facter/dc_suffix.rb b/modules/facter/lib/facter/dc_suffix.rb
index a8526978..c480e3ac 100644
--- a/modules/facter/lib/facter/dc_suffix.rb
+++ b/modules/facter/lib/facter/dc_suffix.rb
@@ -2,9 +2,9 @@ Facter.add("dc_suffix") do
setcode do
begin
Facter.domain
- rescue
+ rescue
Facter.loadfacts()
end
dc_suffix = 'dc=' + Facter.value('domain').gsub('.',',dc=')
end
-end
+end
diff --git a/modules/facter/lib/facter/lib_dir.rb b/modules/facter/lib/facter/lib_dir.rb
index fe7d6a31..f612ed7e 100644
--- a/modules/facter/lib/facter/lib_dir.rb
+++ b/modules/facter/lib/facter/lib_dir.rb
@@ -2,9 +2,9 @@ Facter.add("lib_dir") do
setcode do
begin
Facter.architecture
- rescue
+ rescue
Facter.loadfacts()
end
'/usr/lib' + ( Facter.value('architecture') == "x86_64" ? '64' : '') + '/'
end
-end
+end
diff --git a/modules/facter/lib/facter/wildcard_sslcert.rb b/modules/facter/lib/facter/wildcard_sslcert.rb
index 1f7c4dd7..093982d9 100644
--- a/modules/facter/lib/facter/wildcard_sslcert.rb
+++ b/modules/facter/lib/facter/wildcard_sslcert.rb
@@ -1,16 +1,16 @@
Facter.add("wildcard_sslcert") do
- setcode do
- begin
- Facter.domain
- rescue
- Facter.loadfacts()
- end
- sslfiles = '/etc/ssl/wildcard.' + Facter.value('domain')
- if File.exist?(sslfiles + '.crt') and File.exist?(sslfiles + '.key') \
- and File.exist?(sslfiles + '.pem')
- 'true'
- else
- 'false'
- end
- end
+ setcode do
+ begin
+ Facter.domain
+ rescue
+ Facter.loadfacts()
+ end
+ sslfiles = '/etc/ssl/wildcard.' + Facter.value('domain')
+ if File.exist?(sslfiles + '.crt') and File.exist?(sslfiles + '.key') \
+ and File.exist?(sslfiles + '.pem')
+ 'true'
+ else
+ 'false'
+ end
+ end
end
diff --git a/modules/facter/spec/spec_helper.rb b/modules/facter/spec/spec_helper.rb
index 81d9f79b..ec3fe615 100644
--- a/modules/facter/spec/spec_helper.rb
+++ b/modules/facter/spec/spec_helper.rb
@@ -32,4 +32,3 @@ RSpec.configure do |config|
to_remove.each {|key| ENV.delete key }
end
end
-