aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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']