mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Check solaris 'smbios' is exists before running it
smbios could potentially be None here, possibly causing the solaris 8/9 failures seen at #19282 Fixes #19282
This commit is contained in:
committed by
Brian Coca
parent
5204024f35
commit
5cd7a08418
@@ -3591,6 +3591,8 @@ class SunOSVirtual(Virtual):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
smbios = self.module.get_bin_path('smbios')
|
smbios = self.module.get_bin_path('smbios')
|
||||||
|
if not smbios:
|
||||||
|
return
|
||||||
rc, out, err = self.module.run_command(smbios)
|
rc, out, err = self.module.run_command(smbios)
|
||||||
if rc == 0:
|
if rc == 0:
|
||||||
for line in out.splitlines():
|
for line in out.splitlines():
|
||||||
|
|||||||
Reference in New Issue
Block a user