Pārlūkot izejas kodu

test(default): use `grains.get` for `oscodename` (for FreeBSD) [skip ci]

Otherwise encounter this failure in the CI on FreeBSD:

```
salt.exceptions.SaltRenderError: Jinja variable 'dict object' has no attribute 'oscodename'
[CRITICAL] Pillar render error: Rendering SLS 'openssh' failed. Please see master log for details.
```
tags/v3.0.2
Imran Iqbal pirms 3 gadiem
vecāks
revīzija
aa8f9dbfd6
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      test/salt/pillar/default.sls

+ 1
- 1
test/salt/pillar/default.sls Parādīt failu

@@ -27,7 +27,7 @@ sshd_config:
{%- endif %}
{#- Need this on various platforms to avoid the `kitchen verify` failure as mentioned above; see: #}
{#- * https://gitlab.com/saltstack-formulas/infrastructure/salt-image-builder/-/commit/cb6781a2bba9 #}
{%- if grains.os in ["Arch", "OpenBSD"] or grains.oscodename in ["openSUSE Tumbleweed"] %}
{%- if grains.os in ["Arch", "OpenBSD"] or grains.get("oscodename", "") in ["openSUSE Tumbleweed"] %}
PubkeyAcceptedAlgorithms: "+ssh-rsa"
{%- endif %}


Notiek ielāde…
Atcelt
Saglabāt