From b6a5819d7daefde450ab263a4a57a6d173255ee0 Mon Sep 17 00:00:00 2001 From: Eduardo Sousa Date: Tue, 4 Jun 2019 14:10:15 +0100 Subject: [PATCH] Fix bug 732 Change-Id: I4d50aaf644849df989963052bd94a61c64b84db5 Signed-off-by: Eduardo Sousa --- osm_nbi/nbi.py | 2 +- osm_nbi/resources_to_operations.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py index a43336d..20e0520 100644 --- a/osm_nbi/nbi.py +++ b/osm_nbi/nbi.py @@ -221,7 +221,7 @@ class Server(object): "": {"METHODS": ("GET", "DELETE", "PUT")} }, "roles": {"METHODS": ("GET", "POST"), - "": {"METHODS": ("GET", "POST", "DELETE")} + "": {"METHODS": ("GET", "POST", "DELETE", "PUT")} }, "vims": {"METHODS": ("GET", "POST"), "": {"METHODS": ("GET", "DELETE", "PATCH", "PUT")} diff --git a/osm_nbi/resources_to_operations.yml b/osm_nbi/resources_to_operations.yml index 3a94de2..4b35d27 100644 --- a/osm_nbi/resources_to_operations.yml +++ b/osm_nbi/resources_to_operations.yml @@ -276,6 +276,8 @@ resources_to_operations: "DELETE /admin/v1/roles/": "roles:id:delete" + "PUT /admin/v1/roles/": "roles:id:put" + ################################################################################ ##################################### PDUDs #################################### ################################################################################ -- 2.25.1