Skip to content

Commit cb0cd47

Browse files
committed
Fix 'id' vs. 'scanID' in patch
1 parent 71384d4 commit cb0cd47

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

scan/client/scanclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def patch(self, scanID, address, property, value): # @ReservedAssignment
498498
>>> client.resume(id)
499499
"""
500500
xml = "<patch><address>%d</address><property>%s</property><value>%s</value></patch>" % (address, property, str(value))
501-
perform_request(self.__baseURL + "/scan/" + str(id) + '/patch', 'PUT', xml)
501+
perform_request(self.__baseURL + "/scan/" + str(scanID) + '/patch', 'PUT', xml)
502502

503503

504504
def getData(self, scanID):

scan/version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11

2-
__version__ = '1.5.2'
2+
__version__ = '1.5.3'
33

44
version_history = """
5+
1.5.3 - Fix 'id' vs. 'scanID' in patch()
56
1.5.2 - Try to use cElementTree
67
1.5.1 - ScanInfo.finish
78
1.5.0 - If(..) command

0 commit comments

Comments
 (0)