Skip to content

Commit

Permalink
Bug Fix - Issue #6
Browse files Browse the repository at this point in the history
QualysApplianceInput.py
 - Rescoped the xpath query, now correctly identifies the appliance XML instead of the appliance list XML
  • Loading branch information
ianglennon committed Oct 13, 2021
1 parent 0095d25 commit 6ea4ef3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion QualysApplianceInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def generateApplianceMap(source_api: QualysAPI.QualysAPI, target_api: QualysAPI.
for sourceappliance in sourcelist.findall('APPLIANCE'):
srcappliancename = sourceappliance.find('NAME').text
srcapplianceid = sourceappliance.find('ID').text
tgtappliance = targetlist.find('.//*[NAME="%s"]/..' % srcappliancename)

tgtappliance = targetlist.find('.//*[NAME="%s"]' % srcappliancename)
if tgtappliance is None:
print('ERROR: Unable to find Appliance %s in target subscription')
return None
Expand Down

0 comments on commit 6ea4ef3

Please sign in to comment.