Skip to content

Commit

Permalink
Fix small bug in datastore command, which made other paster commands …
Browse files Browse the repository at this point in the history
…fail
  • Loading branch information
amercader committed Oct 19, 2012
1 parent b806bb0 commit 079af72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/datastore/plugin.py
Expand Up @@ -40,7 +40,7 @@ def configure(self, config):
# Check whether we are running one of the paster commands which means
# that we should ignore the following tests.
import sys
if sys.argv[0].split('/')[-1] == 'paster' and "datastore" in [sys.argv[1], sys.argv[2]]:
if sys.argv[0].split('/')[-1] == 'paster' and 'datastore' in sys.argv[1:]:
log.warn('Omitting permission checks because you are '
'running paster commands.')
return
Expand Down

0 comments on commit 079af72

Please sign in to comment.