From 5ce16943eb32826cf16a7c84093f5f72882a743b Mon Sep 17 00:00:00 2001 From: Eric Rasche Date: Wed, 18 Mar 2015 16:10:54 -0500 Subject: [PATCH] Fix bug whereby repo type was always unrestricted --- lib/galaxy/webapps/tool_shed/api/repositories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/webapps/tool_shed/api/repositories.py b/lib/galaxy/webapps/tool_shed/api/repositories.py index abdafcd8797c..0403f3255501 100644 --- a/lib/galaxy/webapps/tool_shed/api/repositories.py +++ b/lib/galaxy/webapps/tool_shed/api/repositories.py @@ -619,7 +619,7 @@ def create( self, trans, payload, **kwd ): category_ids = util.listify( params.get( 'category_ids[]', '' ) ) selected_categories = [ trans.security.decode_id( id ) for id in category_ids ] - repo_type = kwd.get( 'type', rt_util.UNRESTRICTED ) + repo_type = params.get( 'type', rt_util.UNRESTRICTED ) if repo_type not in rt_util.types: raise exceptions.RequestParameterInvalidException( 'This repository type is not valid' )