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
=== modified file 'manage-builders'
--- manage-builders 2015-03-24 08:56:23 +0000
+++ manage-builders 2016-01-25 04:02:14 +0000
@@ -52,8 +52,9 @@
52parser = OptionParser(description=dedent("""\52parser = OptionParser(description=dedent("""\
53 List and manage Launchpad builders.53 List and manage Launchpad builders.
5454
55 If no changes are specified (--auto, --manual, --enable, --disable, or55 If no changes are specified (--auto, --manual, --enable, --disable,
56 --set-failnotes), a detailed listing of matching builders will be shown.56 --set-failnotes or --set-vm-host), a detailed listing of matching
57 builders will be shown.
57 """))58 """))
58parser.add_option(59parser.add_option(
59 "-l", "--lp-instance", dest="lp_instance", default="production",60 "-l", "--lp-instance", dest="lp_instance", default="production",
@@ -103,6 +104,9 @@
103parser.add_option(104parser.add_option(
104 "--set-failnotes", dest="set_failnotes", default=None,105 "--set-failnotes", dest="set_failnotes", default=None,
105 help="set the builder's failnotes")106 help="set the builder's failnotes")
107parser.add_option(
108 "--set-vm-host", dest="set_vm_host", default=None,
109 help="set the builder's VM host")
106110
107(options, args) = parser.parse_args()111(options, args) = parser.parse_args()
108112
@@ -126,6 +130,8 @@
126 changes['builderok'] = False130 changes['builderok'] = False
127if options.set_failnotes is not None:131if options.set_failnotes is not None:
128 changes['failnotes'] = options.set_failnotes or None132 changes['failnotes'] = options.set_failnotes or None
133if options.set_vm_host is not None:
134 changes['vm_host'] = options.set_vm_host or None
129135
130lp = Launchpad.login_with(136lp = Launchpad.login_with(
131 'manage-builders', options.lp_instance, version='devel')137 'manage-builders', options.lp_instance, version='devel')

Subscribers

People subscribed via source and target branches