Skip to content

Commit

Permalink
Bug fix - Issue #5
Browse files Browse the repository at this point in the history
QualysApplianceInput.py
 - Fixed Issue #5, missing * from xpath search
  • Loading branch information
ianglennon committed Oct 13, 2021
1 parent 22d387c commit 082a015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QualysApplianceInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ 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 082a015

Please sign in to comment.