Skip to content

Commit c09d186

Browse files
authored
Merge pull request #466 from puppetlabs/CAT-2203
(CAT-2203) Removing legacy facts
2 parents be09a87 + b01015e commit c09d186

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hiera.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ defaults: # Used for any hierarchy level that omits these keys.
66
data_hash: yaml_data # Use the built-in YAML backend.
77

88
hierarchy:
9-
- name: "osfamily/major release"
9+
- name: "os.family/major release"
1010
paths:
1111
# Used to distinguish between Debian and Ubuntu
1212
- "os/%{facts.os.name}/%{facts.os.release.major}.yaml"
1313
- "os/%{facts.os.family}/%{facts.os.release.major}.yaml"
1414
# Used for Solaris
1515
- "os/%{facts.os.family}/%{facts.kernelrelease}.yaml"
16-
- name: "osfamily"
16+
- name: "os.family"
1717
paths:
1818
- "os/%{facts.os.name}.yaml"
1919
- "os/%{facts.os.family}.yaml"

lib/puppet/provider/java_ks/keytool.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def run_command(cmd, target = false, stdinfile = false, env = {})
358358
# From a best practice standpoint the keystore should be protected by file
359359
# permissions and not just the passphrase so "making it work on SLES"
360360
# trumps.
361-
if Facter.value('osfamily') == 'Suse' && @resource[:password]
361+
if Facter.value('os.family') == 'Suse' && @resource[:password]
362362
cmd_to_run = cmd.is_a?(String) ? cmd.split(%r{\s}).first : cmd.first
363363
if cmd_to_run == command_keytool
364364
cmd << '-srcstorepass' << @resource[:password]

0 commit comments

Comments
 (0)