assing, not compare

pull/82556/head
Brian Coca 4 months ago
parent 69d94b1b5d
commit 3dd38764a6

@ -424,9 +424,9 @@ class FreeBSDScanService(BaseService):
service_info['pid'] = p.match(stdout[0])[0]
elif rc == 1:
if 'is not running' in stdout.lines()[0]:
service_info['status'] == 'stopped'
service_info['status'] = 'stopped'
elif 'unknown directive' in stderr.lines()[0]:
service_info['status'] == 'does not support status query'
service_info['status'] = 'does not support status query'
elif stderr:
self.module.warn("Failed to get info for %s: %s" % (service, stderr))
elif stdout:

Loading…
Cancel
Save