comparison bitten/slave.py @ 905:0ae349142bf2

Oops. Typo in `local` and `dry_run` slave attachment info logging. Fixes #670. Thanks.
author osimons
date Wed, 30 Mar 2011 13:29:44 +0000
parents ce35ae342a66
children 5bfdd7348d6f
comparison
equal deleted inserted replaced
903:295594162417 905:0ae349142bf2
502 502
503 def _attach_file(self, build_url, recipe, attachment): 503 def _attach_file(self, build_url, recipe, attachment):
504 form_token = recipe._root.attr.get('form_token', '') 504 form_token = recipe._root.attr.get('form_token', '')
505 if self.local or self.dry_run or not form_token: 505 if self.local or self.dry_run or not form_token:
506 log.info('Attachment %s not sent due to current slave options', 506 log.info('Attachment %s not sent due to current slave options',
507 attachment.attr['file']) 507 attachment.attr['filename'])
508 return 508 return
509 resource_type = attachment.attr['resource'] 509 resource_type = attachment.attr['resource']
510 url = str(build_url + '/attach/' + resource_type) 510 url = str(build_url + '/attach/' + resource_type)
511 path = recipe.ctxt.resolve(attachment.attr['filename']) 511 path = recipe.ctxt.resolve(attachment.attr['filename'])
512 filename = os.path.basename(path) 512 filename = os.path.basename(path)
Copyright (C) 2012-2017 Edgewall Software