Merge pull request #45199 from gtmanfred/status

status.pid returns pid ids not process names
This commit is contained in:
Nicole Thomas 2017-12-28 14:06:11 -05:00 committed by GitHub
commit 6f52034e08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ def process(name):
'data': {}} # Data field for monitoring state
data = __salt__['status.pid'](name)
if name not in data:
if not data:
ret['result'] = False
ret['comment'] += 'Process signature "{0}" not found '.format(
name