Correct removeLabels checks
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 26 Dec 2014 06:21:40 +0000 (14:21 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Fri, 26 Dec 2014 06:21:40 +0000 (14:21 +0800)
mdk/commands/tracker.py

index 9fc9ec6..6ed449a 100644 (file)
@@ -101,7 +101,7 @@ class TrackerCommand(Command):
         if args.removelabels:
             if 'triaged' in args.removelabels:
                 self.argumentError('The label \'triaged\' cannot be removed using MDK')
-            elif 'triaging_in_progress' in args.addlabels:
+            elif 'triaging_in_progress' in args.removelabels:
                 self.argumentError('The label \'triaging_in_progress\' cannot be removed using MDK')
             self.Jira.removeLabels(self.mdl, args.removelabels)