mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7405: Make the trailing slash conditional for meta-data requests
This should fix the cloud-init issues described in this issue.
This commit is contained in:
parent
8138984dc9
commit
4f494f708b
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in New Issue