mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
ignore no repos defined exit code
This commit is contained in:
parent
5e388d588f
commit
3531fd07bd
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