mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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.
This commit is contained in:
parent
8d3e22ccc4
commit
c92ec68fa3
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue