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:
parent
245a3715db
commit
b0b8697617
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue