Fix setup
on Solaris 8 and 9 (#20780)
Neither the `virtinfo` nor `smbios` commands exist on these systems, which was causing `setup` to fail with the error `Argument 'args' to run_command must be list or string`.
This commit is contained in:
parent
65ee9d2e46
commit
04b2e1fbc0
1 changed files with 16 additions and 15 deletions
|
@ -3342,6 +3342,7 @@ class SunOSVirtual(Virtual):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
smbios = self.module.get_bin_path('smbios')
|
smbios = self.module.get_bin_path('smbios')
|
||||||
|
if smbios:
|
||||||
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.split('\n'):
|
for line in out.split('\n'):
|
||||||
|
|
Loading…
Reference in a new issue