http://bugzilla.opensuse.org/show_bug.cgi?id=964445
http://bugzilla.opensuse.org/show_bug.cgi?id=964445#c3
Duncan Mac-Vicar changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags|needinfo?(osynge@suse.com) |
--- Comment #3 from Duncan Mac-Vicar ---
We had some issues with Leap because Leap is inconsistent to the rest of
distros on what information it puts on each os-release fields.
See https://github.com/SUSE/spacewalk/wiki/Salt-on-SUSE
But those were patched. And if I start a Leap container with docker:
docker start -ti opensuse:42.1 /bin/bash
I can't reproduce what Owen Mentions
"{% if grains['os_family'] == 'Suse' %} Does not work on LEAP."
bash-4.2# salt-call --local grains.get os_family
local:
Suse
"{% if grains['osrelease_info'].0 == '42' %} Does not work on LEAP."
bash-4.2# salt-call --local grains.get osrelease_info
local:
- 42
- 1
osrelease_info is an array. Can you index arrays like that in jinja?
Why not grains['osrelease_info'[0]
--
You are receiving this mail because:
You are on the CC list for the bug.