~landscape/ci/cistack-slaves

« back to all changes in this revision

Viewing changes to launchpad/list-active-series-branches

  • Committer: Adam Collard
  • Date: 2015-08-06 15:50:20 UTC
  • Revision ID: adam.collard@canonical.com-20150806155020-xnxdk8j6so0bctz6
Skip cisco-odl when finding branches for active series

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
    options["credentials_file"] = os.path.expanduser(
20
20
            "~/.config/tarmac/credentials")
21
21
 
 
22
SKIPPED_SERIES = {"trunk", "cisco-odl"}
 
23
 
22
24
lp = Launchpad.login_with(app_name,'production', **options)
23
25
landscape = lp.projects["landscape"]
24
26
for series in landscape.series:
25
 
    if series.name == "trunk":
 
27
    if series.name in SKIPPED_SERIES:
26
28
        continue
27
29
    if series.active:
28
30
        print "%s" % (series.branch.display_name)