Merge "Always strip {name} from name" into feature/zuulv3

This commit is contained in:
Zuul 2017-09-12 23:45:49 +00:00 committed by Gerrit Code Review
commit 629da108da
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'):