Minor fix in vmware_export_ovf module (#54121)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/54219/head
Abhijeet Kasurde 6 years ago committed by GitHub
parent 18d9715fb1
commit 636e2bc10a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -95,7 +95,7 @@ from threading import Thread
from ansible.module_utils.urls import open_url
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils._text import to_text
from ansible.module_utils.vmware import (connect_to_api, vmware_argument_spec, PyVmomi)
from ansible.module_utils.vmware import vmware_argument_spec, PyVmomi
try:
from pyVmomi import vim
from pyVim import connect
@ -137,9 +137,7 @@ class LeaseProgressUpdater(Thread):
class VMwareExportVmOvf(PyVmomi):
def __init__(self, module):
self.content = connect_to_api(module)
self.module = module
self.params = module.params
super(VMwareExportVmOvf, self).__init__(module)
self.mf_file = ''
self.ovf_dir = ''
# set read device content chunk size to 2 MB

Loading…
Cancel
Save