Handle NoneType error in vmware_host_service_info (#67641)

Handle NoneType error occured due to accessing host system service info
in vmware_host_service_info module.

Fixes: #67615

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/67676/head
Abhijeet Kasurde 5 years ago committed by GitHub
parent 482885e0c8
commit 6936e7b698
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- Handle NoneType error when accessing service system info in vmware_host_service_info module (https://github.com/ansible/ansible/issues/67615).

@ -112,7 +112,7 @@ class VmwareServiceManager(PyVmomi):
for host in self.hosts:
host_service_info = []
host_service_system = host.configManager.serviceSystem
if host_service_system:
if host_service_system and host_service_system.serviceInfo:
services = host_service_system.serviceInfo.service
for service in services:
host_service_info.append(

Loading…
Cancel
Save