зеркало из https://github.com/mozilla/scanapi.git
launch scans after api creation
This commit is contained in:
Родитель
a88eb94ec4
Коммит
bbe413140f
|
@ -139,6 +139,8 @@ class ScanAPIScanner(object):
|
||||||
sid = self._unique_scan_id()
|
sid = self._unique_scan_id()
|
||||||
self._scanner.policy_copy(policy, sid)
|
self._scanner.policy_copy(policy, sid)
|
||||||
self._scanner.scan_add(targets=targets, name=sid)
|
self._scanner.scan_add(targets=targets, name=sid)
|
||||||
|
scan = self._scan_from_scanid(sid)
|
||||||
|
self._scanner.action(action='scans/' + str(scan['id']) + '/launch', method='post')
|
||||||
return {'scanid': sid}
|
return {'scanid': sid}
|
||||||
|
|
||||||
def scan_completed(self, scanid):
|
def scan_completed(self, scanid):
|
||||||
|
|
Загрузка…
Ссылка в новой задаче