Bug ID 954135
Summary salt: zypper module checks the os_family grain for the value 'Suse'
Classification openSUSE
Product openSUSE Distribution
Version Leap 42.1
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Other
Assignee bnc-team-screening@forge.provo.novell.com
Reporter llua@gmx.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Currently the zypper module, in the __virtual__ function; checks if the
os_family grain is not equal to `Suse'
and returns false

In leap, the value of os_family is: openSUSE Leap
Which causes the test to succeed and the pkg.* modules are unavailable for use.

You can reproduce this:
- installing the salt package
- running salt-call --local pkg.install zsh

The following error appears:
'pkg.install' is not available.

I fixed it by changing the test to:
if 'suse' in __grains__.get('os_family', ''):

Fixes the issue for me, but i am not sure if there is a more proper fix for it.


You are receiving this mail because: