Thats what I thought:
>>> from urllib.parse import urljoin >>> urljoin('http://localhost:5240/MAAS', '/metadata/latest/by-id/swywya/?op=get_preseed') 'http://localhost:5240/metadata/latest/by-id/swywya/?op=get_preseed'
Thats what I thought:
>>> from urllib.parse import urljoin localhost: 5240/MAAS', '/metadata/ latest/ by-id/swywya/ ?op=get_ preseed' ) localhost: 5240/metadata/ latest/ by-id/swywya/ ?op=get_ preseed'
>>> urljoin('http://
'http://