From ac04e6d97ec9e3afeb16937402efbd306fdccae9 Mon Sep 17 00:00:00 2001 From: Erik Weber Date: Mon, 25 Aug 2014 13:57:04 +0200 Subject: [PATCH] CLOUDSTACK-7405: allowing VR meta-data to be accessed without trailing slash Signed-off-by: Erik Weber Signed-off-by: Sebastien Goasguen --- systemvm/patches/debian/config/opt/cloud/bin/vmdata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/vmdata.py b/systemvm/patches/debian/config/opt/cloud/bin/vmdata.py index f508032bb83..a44c134ffca 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/vmdata.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/vmdata.py @@ -176,7 +176,7 @@ def htaccess(ip, folder, file): if not entry in fh.read(): fh.write(entry + '\n') - entry = "RewriteRule ^meta-data/$ ../" + folder + "/%{REMOTE_ADDR}/meta-data [L,NC,QSA]" + entry = "RewriteRule ^meta-data/?$ ../" + folder + "/%{REMOTE_ADDR}/meta-data [L,NC,QSA]" fh.seek(0) if not entry in fh.read():