Merge lp:~barryprice/ubuntu-archive-tools/add_set-vm-host into lp:ubuntu-archive-tools

Proposed by Barry Price
Status: Merged
Merged at revision: 993
Proposed branch: lp:~barryprice/ubuntu-archive-tools/add_set-vm-host
Merge into: lp:ubuntu-archive-tools
Diff against target: 34 lines (+8/-2)
1 file modified
manage-builders (+8/-2)
To merge this branch: bzr merge lp:~barryprice/ubuntu-archive-tools/add_set-vm-host
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+283758@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'manage-builders'
2--- manage-builders 2015-03-24 08:56:23 +0000
3+++ manage-builders 2016-01-25 04:02:14 +0000
4@@ -52,8 +52,9 @@
5 parser = OptionParser(description=dedent("""\
6 List and manage Launchpad builders.
7
8- If no changes are specified (--auto, --manual, --enable, --disable, or
9- --set-failnotes), a detailed listing of matching builders will be shown.
10+ If no changes are specified (--auto, --manual, --enable, --disable,
11+ --set-failnotes or --set-vm-host), a detailed listing of matching
12+ builders will be shown.
13 """))
14 parser.add_option(
15 "-l", "--lp-instance", dest="lp_instance", default="production",
16@@ -103,6 +104,9 @@
17 parser.add_option(
18 "--set-failnotes", dest="set_failnotes", default=None,
19 help="set the builder's failnotes")
20+parser.add_option(
21+ "--set-vm-host", dest="set_vm_host", default=None,
22+ help="set the builder's VM host")
23
24 (options, args) = parser.parse_args()
25
26@@ -126,6 +130,8 @@
27 changes['builderok'] = False
28 if options.set_failnotes is not None:
29 changes['failnotes'] = options.set_failnotes or None
30+if options.set_vm_host is not None:
31+ changes['vm_host'] = options.set_vm_host or None
32
33 lp = Launchpad.login_with(
34 'manage-builders', options.lp_instance, version='devel')

Subscribers

People subscribed via source and target branches