Code Review
/
modeling
/
etsicatalog.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fix but for ETSI Catalog Manager needs to trigger a notification after storing ETSI...
[modeling/etsicatalog.git]
/
catalog
/
packages
/
biz
/
notificationsutil.py
diff --git
a/catalog/packages/biz/notificationsutil.py
b/catalog/packages/biz/notificationsutil.py
index
3a1c60c
..
a13eae9
100644
(file)
--- a/
catalog/packages/biz/notificationsutil.py
+++ b/
catalog/packages/biz/notificationsutil.py
@@
-88,7
+88,7
@@
class NotificationsUtil(object):
username = params.get("userName")
password = params.get("password")
resp = requests.post(callbackuri,
username = params.get("userName")
password = params.get("password")
resp = requests.post(callbackuri,
- data=
notification
,
+ data=
json.dumps(notification)
,
headers={'Connection': 'close',
'content-type': 'application/json',
'accept': 'application/json'},
headers={'Connection': 'close',
'content-type': 'application/json',
'accept': 'application/json'},
@@
-102,7
+102,7
@@
class NotificationsUtil(object):
pass
else:
resp = requests.post(callbackuri,
pass
else:
resp = requests.post(callbackuri,
- data=
notification
,
+ data=
json.dumps(notification)
,
headers={'Connection': 'close',
'content-type': 'application/json',
'accept': 'application/json'},
headers={'Connection': 'close',
'content-type': 'application/json',
'accept': 'application/json'},