Retrieve authentification also for long urls from shed_auth

This commit is contained in:
Marius van den Beek
2016-03-11 17:35:40 +01:00
parent dd07156e11
commit 84865c893e
+1 -1
View File
@@ -49,7 +49,7 @@ class Registry( object ):
url_sans_protocol = common_util.remove_protocol_from_tool_shed_url( url )
for shed_name, shed_url in self.tool_sheds.items():
shed_url_sans_protocol = common_util.remove_protocol_from_tool_shed_url( shed_url )
if shed_url_sans_protocol.find( url_sans_protocol ) >= 0:
if url_sans_protocol.startswith( shed_url_sans_protocol ):
return self.tool_sheds_auth[ shed_name ]
log.debug( "Invalid url '%s' received by tool shed registry's password_manager_for_url method." % str( url ) )
return None