mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix module. (#5383)
This commit is contained in:
parent
b0bb994c3e
commit
c3bdc4b394
2 changed files with 3 additions and 3 deletions
2
changelogs/fragments/5383-xenserver_facts.yml
Normal file
2
changelogs/fragments/5383-xenserver_facts.yml
Normal file
|
@ -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 a new issue