Revision 6f8a3e6a snf-astakos-app/astakos/im/register.py
b/snf-astakos-app/astakos/im/register.py | ||
---|---|---|
125 | 125 |
endpoint = Endpoint.objects.create(service=service) |
126 | 126 |
for key, value in endpoint_dict.iteritems(): |
127 | 127 |
base_url = component.base_url |
128 |
if key == "publicURL" and not value.startswith(base_url): |
|
128 |
if key == "publicURL" and (base_url is None or |
|
129 |
not value.startswith(base_url)): |
|
129 | 130 |
warn = out.write if out is not None else logger.warning |
130 | 131 |
warn("Warning: Endpoint URL '%s' does not start with " |
131 | 132 |
"assumed component base URL '%s'.\n" % (value, base_url)) |
Also available in: Unified diff