Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix the filter of the notifications not correct when the objectType not specific...
[pti/o2.git]
/
o2common
/
service
/
command
/
handler.py
diff --git
a/o2common/service/command/handler.py
b/o2common/service/command/handler.py
index
624781a
..
aff9b78
100644
(file)
--- a/
o2common/service/command/handler.py
+++ b/
o2common/service/command/handler.py
@@
-14,7
+14,6
@@
import os
import requests
import os
import requests
-import json
import http.client
import ssl
from requests_oauthlib import OAuth2Session
import http.client
import ssl
from requests_oauthlib import OAuth2Session
@@
-147,8
+146,7
@@
class SMOClient:
for _ in range(retries):
try:
for _ in range(retries):
try:
- response = self.session.post(
- url, data=json.dumps(data))
+ response = self.session.post(url, json=data)
response.raise_for_status()
return self.handle_post_data(response)
except (SSLError, RequestException) as e:
response.raise_for_status()
return self.handle_post_data(response)
except (SSLError, RequestException) as e: