(cherry picked from commit c3bdc4b394
)
Co-authored-by: Felix Fontein <felix@fontein.de>
pull/5398/head
parent
8eac491057
commit
36f7ff15e9
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- "xenserver_facts - fix broken ``AnsibleModule`` call that prevented the module from working at all (https://github.com/ansible-collections/community.general/pull/5383)."
|
|
@ -162,9 +162,7 @@ def get_srs(session):
|
|||
|
||||
|
||||
def main():
|
||||
module = AnsibleModule(
|
||||
supports_check_mode=True,
|
||||
)
|
||||
module = AnsibleModule({}, supports_check_mode=True)
|
||||
|
||||
if not HAVE_XENAPI:
|
||||
module.fail_json(changed=False, msg="python xen api required for this module")
|
||||
|
|
Loading…
Reference in New Issue