projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix bug 937. NSs are not deleted from database upon NSI deletion
[osm/NBI.git]
/
osm_nbi
/
nbi.py
diff --git
a/osm_nbi/nbi.py
b/osm_nbi/nbi.py
index
e2419cf
..
b7a2c13
100644
(file)
--- a/
osm_nbi/nbi.py
+++ b/
osm_nbi/nbi.py
@@
-257,7
+257,7
@@
valid_url_methods = {
},
"k8sclusters": {"METHODS": ("GET", "POST"),
"ROLE_PERMISSION": "k8sclusters:",
},
"k8sclusters": {"METHODS": ("GET", "POST"),
"ROLE_PERMISSION": "k8sclusters:",
- "<ID>": {"METHODS": ("GET", "DELETE", "PATCH"
, "PUT"
),
+ "<ID>": {"METHODS": ("GET", "DELETE", "PATCH"),
"ROLE_PERMISSION": "k8sclusters:id:"
}
},
"ROLE_PERMISSION": "k8sclusters:id:"
}
},
@@
-482,8
+482,8
@@
class Server(object):
def __init__(self):
self.instance += 1
def __init__(self):
self.instance += 1
- self.engine = Engine()
self.authenticator = Authenticator(valid_url_methods, valid_query_string)
self.authenticator = Authenticator(valid_url_methods, valid_query_string)
+ self.engine = Engine(self.authenticator.tokens_cache)
def _format_in(self, kwargs):
try:
def _format_in(self, kwargs):
try: