aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-04-19 15:10:44 +0100
committerBryn M. Reeves <bmr@redhat.com>2013-04-19 15:10:44 +0100
commitd48129e25248b514ce09f59730742713cf1a70e2 (patch)
treee1f0f3fbefb12a68b544d1194416276986aca561
parentab00491ef17679031fa516501ccbc9a696a8b57a (diff)
downloadsos-d48129e25248b514ce09f59730742713cf1a70e2.tar.gz
Fix Ubuntu policy class
Make sure the ubuntu policy class imports the DebianPlugin tagging class and move initialisation off valid_subclasses from class scope to the constructor since the superclass will reset the property value when its initialiser is called. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/policies/ubuntu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/policies/ubuntu.py b/sos/policies/ubuntu.py
index 97f2d14a..b889441a 100644
--- a/sos/policies/ubuntu.py
+++ b/sos/policies/ubuntu.py
@@ -2,17 +2,17 @@ from __future__ import with_statement
import os
-from sos.plugins import UbuntuPlugin, IndependentPlugin
+from sos.plugins import UbuntuPlugin, DebianPlugin, IndependentPlugin
from sos.policies.debian import DebianPolicy
class UbuntuPolicy(DebianPolicy):
distro = "Ubuntu"
vendor = "Ubuntu"
vendor_url = "http://www.ubuntu.com/"
- valid_subclasses = [UbuntuPlugin]
def __init__(self):
super(UbuntuPolicy, self).__init__()
+ self.valid_subclasses = [DebianPlugin, UbuntuPlugin]
@classmethod
def check(self):