Code Review
/
releng-testresults.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
f3a5531
)
Fix the error in testapiclient delete
81/53281/1
author
thuva4
<tharma.thuva@gmail.com>
Thu, 8 Mar 2018 08:21:58 +0000
(13:51 +0530)
committer
thuva4
<tharma.thuva@gmail.com>
Thu, 8 Mar 2018 08:21:58 +0000
(13:51 +0530)
Fix delete operation in testapiclient
Change-Id: I11b338629bdc81771b7ce911e7de1c3776fef063
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
testapi/testapi-client/testapiclient/http_client.py
patch
|
blob
|
history
diff --git
a/testapi/testapi-client/testapiclient/http_client.py
b/testapi/testapi-client/testapiclient/http_client.py
index
59b4f8e
..
aa6ef11
100644
(file)
--- a/
testapi/testapi-client/testapiclient/http_client.py
+++ b/
testapi/testapi-client/testapiclient/http_client.py
@@
-44,7
+44,7
@@
class HTTPClient(object):
headers=HTTPClient.headers).text
def delete(self, url, *args):
- if(args.__len__ > 0):
+ if(args.__len__
()
> 0):
r = self._session_request('delete', url,
data=json.dumps(args[0]),
headers=HTTPClient.headers)