Always strip {name} from name

We have this protecte in the Job constructor but it needs to come
out no matter what.

Change-Id: I179f41df9ad01f8ebbdcb126f50ad347abcae11b
This commit is contained in:
Monty Taylor 2017-09-12 08:19:23 -06:00
parent 245a3715db
commit b0b8697617
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 2 additions and 1 deletions

View File

@ -283,7 +283,8 @@ class Job:
if self.content and not self.name:
self.name = get_single_key(content)
if not self.name:
self.name = self.orig.replace('-{name}', '').replace('{name}-', '')
self.name = self.orig
self.name = self.name.replace('-{name}', '').replace('{name}-', '')
if self.orig.endswith('-nv'):
self.voting = False
if self.name.endswith('-nv'):