Permalink
Browse files

Correctly find the project slug for a resource, when initializing a p…

…roject from a release URL.
  • Loading branch information...
1 parent 0e47503 commit 8c252d4b9e47799353cda9ea1b2efb7f6cb0615f Apostolos Bessas committed Nov 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 txclib/commands.py
View
@@ -342,8 +342,8 @@ def _auto_remote(path_to_tx, url):
project = vars['project'], release = vars['release'])
resources = []
for r in rel_info['resources']:
- if r.has_key('project_slug'):
- resources.append('.'.join([r['project_slug'], r['slug']]))
+ if r.has_key('project'):
+ resources.append('.'.join([r['project']['slug'], r['slug']]))
else:
resources.append('.'.join([vars['project'], r['slug']]))
utils.MSG("%s resources found. Configuring..." % len(resources))

0 comments on commit 8c252d4

Please sign in to comment.