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>
This commit is contained in:
parent
482885e0c8
commit
6936e7b698
2 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue