mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02: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:
parent
5204024f35
commit
5cd7a08418
1 changed files with 2 additions and 0 deletions
|
@ -3591,6 +3591,8 @@ class SunOSVirtual(Virtual):
|
|||
|
||||
else:
|
||||
smbios = self.module.get_bin_path('smbios')
|
||||
if not smbios:
|
||||
return
|
||||
rc, out, err = self.module.run_command(smbios)
|
||||
if rc == 0:
|
||||
for line in out.splitlines():
|
||||
|
|
Loading…
Reference in a new issue