From c92ec68fa35d5dd68bbeb4aeadcc6f35fb13bd23 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 1 Apr 2014 11:22:29 -0700 Subject: [PATCH] redhat_subscription calls AnsibleModule() without argument_spec The Rhsm object requires an AnsibleModule but it isn't created with an argument_spec and fails. Since the rhn.module is set directly after, setting None for the required argument of Rhsm fixes the module. --- library/packaging/redhat_subscription | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/packaging/redhat_subscription b/library/packaging/redhat_subscription index 0e5ce0856d..f9918ada4b 100644 --- a/library/packaging/redhat_subscription +++ b/library/packaging/redhat_subscription @@ -327,7 +327,7 @@ class RhsmPools(object): def main(): # Load RHSM configuration from file - rhn = Rhsm(AnsibleModule()) + rhn = Rhsm(None) module = AnsibleModule( argument_spec = dict(