Fix allowed methods for K8sClusters 67/8167/1
authordelacruzramo <pedro.delacruzramos@altran.com>
Thu, 14 Nov 2019 08:57:35 +0000 (09:57 +0100)
committerdelacruzramo <pedro.delacruzramos@altran.com>
Thu, 14 Nov 2019 08:57:35 +0000 (09:57 +0100)
Change-Id: I13227be31d71236fa55edb2219afe84b647f256e
Signed-off-by: delacruzramo <pedro.delacruzramos@altran.com>
osm_nbi/nbi.py

index e2419cf..ac30a37 100644 (file)
@@ -257,7 +257,7 @@ valid_url_methods = {
                      },
             "k8sclusters": {"METHODS": ("GET", "POST"),
                             "ROLE_PERMISSION": "k8sclusters:",
-                            "<ID>": {"METHODS": ("GET", "DELETE", "PATCH", "PUT"),
+                            "<ID>": {"METHODS": ("GET", "DELETE", "PATCH"),
                                      "ROLE_PERMISSION": "k8sclusters:id:"
                                      }
                             },