bug 739 reload roles info when there is a change at roles
Adding 'admin' operation to track query string ADMIN

Change-Id: I2af27018643fa5e84dce3c606249d66893178a82
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py
index 9d22df7..afc65c0 100644
--- a/osm_nbi/nbi.py
+++ b/osm_nbi/nbi.py
@@ -955,6 +955,10 @@
                 cherrypy.response.status = HTTPStatus.NO_CONTENT.value
             else:
                 raise NbiException("Method {} not allowed".format(method), HTTPStatus.METHOD_NOT_ALLOWED)
+
+            # if Role information changes, it is needed to reload the information of roles
+            if topic == "roles" and method != "GET":
+                self.authenticator.load_operation_to_allowed_roles()
             return self._format_out(outdata, session, _format)
         except Exception as e:
             if isinstance(e, (NbiException, EngineException, DbException, FsException, MsgException, AuthException,