Projet

Général

Profil

Révision c8683bd8

IDc8683bd8ec67a25f75368a866ebeb53bac64a5c0
Parent 430c87b7
Enfant f8c4097f

Ajouté par Kienan Stewart il y a plus de 4 ans

Revert "Use symbols for both lookups in os_facts"

This reverts commit 0877a8fd3646130f06b29e581a1ed2f990394094.

My initial tests were too hasty. `os_facts[:os][:family]` returns
an empty string. The original formulation was correct.

Voir les différences:

spec/classes/nftables_spec.rb
80 80
        )
81 81
      }
82 82

  
83
      if os_facts[:os][:family]  == 'Debian'
83
      if os_facts[:os]['family']  == 'Debian'
84 84
        it {
85 85
          is_expected.to contain_systemd__dropin_file('puppet_nft.conf').with(
86 86
            content: %r{^ExecReload=/sbin/nft -I /etc/nftables/puppet -f /etc/nftables.conf$},

Formats disponibles : Unified diff