projects
/
osm
/
vim-emu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #144 from mpeuster/master
[osm/vim-emu.git]
/
src
/
emuvim
/
api
/
rest
/
network.py
diff --git
a/src/emuvim/api/rest/network.py
b/src/emuvim/api/rest/network.py
index
68256f5
..
3c0062e
100755
(executable)
--- a/
src/emuvim/api/rest/network.py
+++ b/
src/emuvim/api/rest/network.py
@@
-74,7
+74,9
@@
class NetworkAction(Resource):
try:
# check if json data is a dict
data = request.json
- if type(data) is not dict:
+ if data is None:
+ data = {}
+ elif type(data) is not dict:
data = json.loads(request.json)
vnf_src_interface = data.get("vnf_src_interface")