Skip to content

Commit

Permalink
Fix credentials fetching during publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
areitz authored and Andy Reitz committed Aug 22, 2014
1 parent 7ded359 commit fb6c987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/pants/backend/jvm/tasks/jar_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def __init__(self, *args, **kwargs):
for repo, data in self.repos.items():
auth = data.get('auth')
if auth:
credentials = self.context.resolve(auth).next()
credentials = next(iter(context.resolve(auth)))
user = credentials.username(data['resolver'])
password = credentials.password(data['resolver'])
self.context.log.debug('Found auth for repo=%s user=%s' % (repo, user))
Expand Down

0 comments on commit fb6c987

Please sign in to comment.