mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
ignore no repos defined exit code
This commit is contained in:
parent
745e5f00f5
commit
38e044b90d
1 changed files with 3 additions and 1 deletions
|
@ -1450,7 +1450,9 @@ def refresh_db(force=None, root=None, **kwargs):
|
|||
if kwargs.get("gpgautoimport", False):
|
||||
global_opts.append("--gpg-auto-import-keys")
|
||||
|
||||
out = __zypper__(root=root).refreshable.call(*global_opts, *refresh_opts)
|
||||
out = __zypper__(root=root).refreshable.call(
|
||||
*global_opts, *refresh_opts, success_retcodes=[0, 6]
|
||||
)
|
||||
|
||||
for line in out.splitlines():
|
||||
if not line:
|
||||
|
|
Loading…
Add table
Reference in a new issue