Merge "have list-deliverables --no-stable-branch skip tempest repos"
This commit is contained in:
commit
4c02012aba
@ -199,6 +199,10 @@ def main():
|
||||
if args.type and deliv.type not in args.type:
|
||||
continue
|
||||
if args.no_stable_branch:
|
||||
if deliv.is_branchless:
|
||||
continue
|
||||
if deliv.name == 'release-test':
|
||||
continue
|
||||
if deliv.get_branch_location('stable/' + series) is not None:
|
||||
continue
|
||||
if args.unreleased and (deliv.is_released or not deliv.is_releasable):
|
||||
|
@ -477,6 +477,15 @@ class Deliverable(object):
|
||||
def is_milestone_based(self):
|
||||
return self.model == 'cycle-with-milestones'
|
||||
|
||||
@property
|
||||
def is_branchless(self):
|
||||
# Tempest plugins do not branch.
|
||||
if self.type == 'tempest-plugin':
|
||||
return True
|
||||
if self.name == 'tempest':
|
||||
return True
|
||||
return False
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
if 'tempest-plugin' in self.name:
|
||||
|
Loading…
Reference in New Issue
Block a user