Re: [qubes-users] Salt: Jinja Error in templates but NOT dom0!?

2022-05-03 Thread 'Johannes Graumann' via qubes-users
> On 03.05.2022 11:32 Frédéric Pierret wrote: > > > Hello, > > Just writing what I'm thinking (not Salt expert at all!), you are probably > missing default value in the .get(): .get('kernelrelease', SOMETHING_DEFAULT) > > Le 5/3/22 à 11:01, 'Johannes Graumann' via qubes-users a écrit : >

Re: [qubes-users] Salt: Jinja Error in templates but NOT dom0!?

2022-05-03 Thread Frédéric Pierret
Hello, Just writing what I'm thinking (not Salt expert at all!), you are probably missing default value in the .get(): .get('kernelrelease', SOMETHING_DEFAULT) Le 5/3/22 à 11:01, 'Johannes Graumann' via qubes-users a écrit : I have the following `*.sls` in my `salt`setup: {% if

[qubes-users] Salt: Jinja Error in templates but NOT dom0!?

2022-05-03 Thread 'Johannes Graumann' via qubes-users
I have the following `*.sls` in my `salt`setup: {% if salt['pkg.version_cmp'](salt['grains'].get('kernelrealease'), '5.12') < 0 %} move broken AX260 wifi blob out of the way:   file.rename:     - name: /usr/lib/firmware/iwlwifi-ty-a0-gf-ao.pnvm.xz.bak     - source: