diff --git a/salt/modules/zypper.py b/salt/modules/zypper.py index 6d898a68ff..4f5330d0f0 100644 --- a/salt/modules/zypper.py +++ b/salt/modules/zypper.py @@ -555,7 +555,7 @@ def info_available(*names, **kwargs): if nfo.get('status'): nfo['status'] = nfo.get('status') if nfo.get('installed'): - nfo['installed'] = nfo.get('installed').lower().startswith( 'yes' ) and True or False + nfo['installed'] = nfo.get('installed').lower().startswith('yes') return ret