Commit c92ec68f by Andrew Resch

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.
parent 8d3e22cc
...@@ -327,7 +327,7 @@ class RhsmPools(object): ...@@ -327,7 +327,7 @@ class RhsmPools(object):
def main(): def main():
# Load RHSM configuration from file # Load RHSM configuration from file
rhn = Rhsm(AnsibleModule()) rhn = Rhsm(None)
module = AnsibleModule( module = AnsibleModule(
argument_spec = dict( argument_spec = dict(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment