
While using internal redirection, the URI must be related to the plugin and not related to the whole application. Fix it. Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com> --- src/wok/plugins/kimchi/control/debugreports.py | 3 ++- src/wok/plugins/kimchi/control/vms.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wok/plugins/kimchi/control/debugreports.py b/src/wok/plugins/kimchi/control/debugreports.py index b5a3072..82cb1cd 100644 --- a/src/wok/plugins/kimchi/control/debugreports.py +++ b/src/wok/plugins/kimchi/control/debugreports.py @@ -58,4 +58,5 @@ class DebugReportContent(Resource): def get(self): self.lookup() - raise internal_redirect(self.info['uri']) + internal_uri = self.info['uri'].replace('plugins/kimchi', '') + raise internal_redirect(internal_uri) diff --git a/src/wok/plugins/kimchi/control/vms.py b/src/wok/plugins/kimchi/control/vms.py index 1b0e3e0..58d4b67 100644 --- a/src/wok/plugins/kimchi/control/vms.py +++ b/src/wok/plugins/kimchi/control/vms.py @@ -64,4 +64,5 @@ class VMScreenShot(Resource): def get(self): self.lookup() - raise internal_redirect(self.info) + internal_uri = self.info.replace('plugins/kimchi', '') + raise internal_redirect(internal_uri) -- 2.1.0