Skip to content

Commit

Permalink
Bug fix - Issue #20
Browse files Browse the repository at this point in the history
QualysVMScanScheduleProcessor.py
 - Changed behaviour of IP Network Range detection.  Now does not include parameter in URL where the value is None or an empty string (indicating it was not present in the source)
  • Loading branch information
ianglennon committed Oct 29, 2021
1 parent d41a28c commit 4f80d9e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions QualysVM/QualysVMScanScheduleProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,14 @@ def convertScheduledScan(scan: ET.Element):
appliance_name = ''
scanners_in_tagset = '1'

requeststr = '%s&tag_set_by=name&target_from=tags&tag_include_selector=%s&tag_set_include=%s' \
'&use_ip_nt_range_tags=%s' % (requeststr,
tag_include_selector,
tag_set_include,
use_ip_nt_range_tag)
requeststr = '%s&tag_set_by=name&target_from=tags&tag_include_selector=%s&tag_set_include=%s' % \
(requeststr,
tag_include_selector,
tag_set_include)

if use_ip_nt_range_tag is not None or use_ip_nt_range_tag != '':
requeststr = '%s&use_ip_nt_range_tags=%s' % (requeststr, use_ip_nt_range_tag)

if tag_set_exclude is not None:
requeststr = '%s&tag_exclude_selector=%s&tag_set_exclude=%s' % (requeststr,
tag_exclude_selector,
Expand Down

0 comments on commit 4f80d9e

Please sign in to comment.