mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Prevent metadata download when listing installed products
This commit is contained in:
parent
e1ef4a9d66
commit
e32212ad53
1 changed files with 4 additions and 1 deletions
|
@ -1322,7 +1322,10 @@ def list_products(all=False, refresh=False):
|
|||
|
||||
ret = list()
|
||||
OEM_PATH = "/var/lib/suseRegister/OEM"
|
||||
cmd = _zypper('-x', 'products')
|
||||
cmd = _zypper()
|
||||
if not all:
|
||||
cmd.append('--disable-repos')
|
||||
cmd.extend(['-x', 'products'])
|
||||
if not all:
|
||||
cmd.append('-i')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue