Fix module. (#5383)

This commit is contained in:
Felix Fontein 2022-10-19 10:13:04 +02:00 committed by GitHub
commit c3bdc4b394
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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")