26 lines
739 B
Diff
26 lines
739 B
Diff
|
From ea6898f82ddc21c73f3ea369e6af241753a2ceda Mon Sep 17 00:00:00 2001
|
||
|
From: Michael Calmer <mc@suse.de>
|
||
|
Date: Mon, 22 Feb 2016 09:51:01 +0100
|
||
|
Subject: [PATCH 21/22] do not change kwargs in refresh while checking a value
|
||
|
|
||
|
---
|
||
|
salt/modules/zypper.py | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/salt/modules/zypper.py b/salt/modules/zypper.py
|
||
|
index e2cd5f9..1499b27 100644
|
||
|
--- a/salt/modules/zypper.py
|
||
|
+++ b/salt/modules/zypper.py
|
||
|
@@ -200,7 +200,7 @@ def info_available(*names, **kwargs):
|
||
|
names = sorted(list(set(names)))
|
||
|
|
||
|
# Refresh db before extracting the latest package
|
||
|
- if kwargs.pop('refresh', True):
|
||
|
+ if kwargs.get('refresh', True):
|
||
|
refresh_db()
|
||
|
|
||
|
pkg_info = []
|
||
|
--
|
||
|
2.1.4
|
||
|
|