diff --git a/plugins/module_utils/clients/_pyvmomi.py b/plugins/module_utils/clients/_pyvmomi.py index 59359c3d..07097385 100644 --- a/plugins/module_utils/clients/_pyvmomi.py +++ b/plugins/module_utils/clients/_pyvmomi.py @@ -148,7 +148,7 @@ def __create_service_instance(self, connection_args, username, password, http_pr session_stub = connect.VimSessionOrientedStub( smart_stub, connect.VimSessionOrientedStub.makeUserLoginMethod(username, password) ) - service_instance = vim.ServiceInstance('ServiceInstance', session_stub ) + service_instance = vim.ServiceInstance('ServiceInstance', session_stub) else: connection_args.update(user=username, pwd=password) service_instance = connect.SmartConnect(**connection_args)