From 257d827c9ef242d69e8d612c562ea87490f1fe81 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sun, 30 Jun 2013 18:54:32 -0400 Subject: [PATCH] Styling: misc pep8 --- library/packaging/redhat_subscription | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/packaging/redhat_subscription b/library/packaging/redhat_subscription index 414b0df886..b6be4a7b27 100644 --- a/library/packaging/redhat_subscription +++ b/library/packaging/redhat_subscription @@ -217,7 +217,7 @@ class Rhsm(RegistrationBase): args = ['subscription-manager', 'identity'] try: - (stdout, stderr, retcode) = run_command(args) + (stdout, stderr, retcode) = run_command(args) except CommandException, e: return False else: @@ -283,11 +283,14 @@ class RhsmPool(object): ''' Convenience class for housing subscription information ''' + def __init__(self, **kwargs): for k,v in kwargs.items(): setattr(self, k, v) + def __str__(self): return str(self.__getattribute__('_name')) + def subscribe(self): (stdout, stderr, retcode) = run_command("subscription-manager subscribe --pool %s" % self.PoolId) return True