aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Jaggars <jjaggars@redhat.com>2012-02-23 09:23:11 -0600
committerJesse Jaggars <jjaggars@redhat.com>2012-02-23 09:23:11 -0600
commit9c102d30a49d123289191e1794dc7224f00e1983 (patch)
tree53b924969aa06c1a4a975d5f3b0957d9807b626b
parent7b920dc06fbbac94f6a46311071cdbbda11c9a59 (diff)
downloadsos-9c102d30a49d123289191e1794dc7224f00e1983.tar.gz
fixing another logic bug in policy loading
-rw-r--r--sos/policies/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py
index 7e49b9a3..ad6539c0 100644
--- a/sos/policies/__init__.py
+++ b/sos/policies/__init__.py
@@ -24,7 +24,8 @@ def load(cache={}):
for policy in import_policy(module):
if policy.check():
cache['policy'] = policy()
- else:
+
+ if 'policy' not in cache:
cache['policy'] = GenericPolicy()
return cache['policy']