mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-09-30 13:33:21 -07:00
pids: avoid type error if name is empty (#10688)
Avoid type error if name is empty.
This commit is contained in:
parent
c84f16c5e9
commit
ceba0cbedb
2 changed files with 3 additions and 1 deletions
|
@ -195,7 +195,7 @@ class Pids(object):
|
|||
self._pids = []
|
||||
|
||||
def execute(self):
|
||||
if self._name:
|
||||
if self._name is not None:
|
||||
self._pids = self._ps.get_pids_by_name(self._name)
|
||||
else:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue