Patchwork [[kteam-tools] stable/create-release-tracker: fix wrong variable used in error message

login
register
mail settings
Submitter Herton Ronaldo Krzesinski
Date May 30, 2011, 8:18 p.m.
Message ID <1306786680-8541-1-git-send-email-herton.krzesinski@canonical.com>
Download mbox | patch
Permalink /patch/97951/
State New
Headers show

Comments

Herton Ronaldo Krzesinski - May 30, 2011, 8:18 p.m.
Invalid task names were being printed in the case an workflow task was
found without automatic assignee.

Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
---
 stable/create-release-tracker |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Steve Conklin - June 1, 2011, 6:41 p.m.
Applied

On Mon, 2011-05-30 at 17:18 -0300, Herton Ronaldo Krzesinski wrote:
> Invalid task names were being printed in the case an workflow task was
> found without automatic assignee.
> 
> Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
> ---
>  stable/create-release-tracker |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/stable/create-release-tracker b/stable/create-release-tracker
> index fb55320..d188573 100755
> --- a/stable/create-release-tracker
> +++ b/stable/create-release-tracker
> @@ -238,7 +238,7 @@ class CreateTrackingBug(StdApp):
>                      if task in taskAssignments:
>                          t.assignee = self.lp.launchpad.people[taskAssignments[task]]
>                      else:
> -                        print 'Warning: Found a workflow task named %s with no automatic assignee, leaving unassigned' % s.name
> +                        print 'Warning: Found a workflow task named %s with no automatic assignee, leaving unassigned' % task
>  
>              #-------------------------------------------------------------------------------------
>              # C H A N G E L O G   W O R K
> -- 
> 1.7.4.1
> 
>

Patch

diff --git a/stable/create-release-tracker b/stable/create-release-tracker
index fb55320..d188573 100755
--- a/stable/create-release-tracker
+++ b/stable/create-release-tracker
@@ -238,7 +238,7 @@  class CreateTrackingBug(StdApp):
                     if task in taskAssignments:
                         t.assignee = self.lp.launchpad.people[taskAssignments[task]]
                     else:
-                        print 'Warning: Found a workflow task named %s with no automatic assignee, leaving unassigned' % s.name
+                        print 'Warning: Found a workflow task named %s with no automatic assignee, leaving unassigned' % task
 
             #-------------------------------------------------------------------------------------
             # C H A N G E L O G   W O R K