Skip to content

Commit

Permalink
Fix module. (#5383)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored Oct 19, 2022
1 parent b0bb994 commit c3bdc4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/5383-xenserver_facts.yml
Original file line number Diff line number Diff line change
@@ -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)."
4 changes: 1 addition & 3 deletions plugins/modules/cloud/misc/xenserver_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c3bdc4b

Please sign in to comment.