parent
c846e915f8
commit
4b495d7e43
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ class Facts(object):
|
|||
proc_1 = to_native(proc_1)
|
||||
proc_1 = proc_1.strip()
|
||||
|
||||
if proc_1 == 'init' or proc_1.endswith('sh'):
|
||||
if proc_1 is not None and (proc_1 == 'init' or proc_1.endswith('sh')):
|
||||
# many systems return init, so this cannot be trusted, if it ends in 'sh' it probalby is a shell in a container
|
||||
proc_1 = None
|
||||
|
||||
|
|
Loading…
Reference in a new issue