Skip to content

Commit

Permalink
Fix module. (#5383) (#5386)
Browse files Browse the repository at this point in the history
(cherry picked from commit c3bdc4b)

Co-authored-by: Felix Fontein <felix@fontein.de>
  • Loading branch information
patchback[bot] and felixfontein authored Oct 19, 2022
1 parent 5c381a8 commit afcb4bf
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 @@ -161,9 +161,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 afcb4bf

Please sign in to comment.