Comment 0 for bug 1356855

Revision history for this message
Loic Lambiel (loic-lambiel) wrote :

Hi,

Cloud-init 0.7.5 fails to get cloudstack user-data because of trailing slash (ok in previous versions).

As a temp workaround I use the following patch in url_helper.py line 239 (0.7.5-0ubuntu1):

           if e.response.status_code == 404:
                if url.endswith("/"):
                    url = url[:-1]
                    req_args["url"] = url
                else:
                    url = url + "/"
                    req_args["url"] = url

I don't know how other products (EC2, openstack & co) deal with trailing slash

Hope that helps

Thanks