Merge lp:~blake-rouse/maas/fix-bug-1303915-1.5 into lp:maas/1.5

Proposed by Blake Rouse on 2014-04-07
Status: Merged
Approved by: Blake Rouse on 2014-04-07
Approved revision: 2229
Merged at revision: 2230
Proposed branch: lp:~blake-rouse/maas/fix-bug-1303915-1.5
Merge into: lp:maas/1.5
Diff against target: 12 lines (+2/-2)
1 file modified
src/provisioningserver/custom_hardware/seamicro.py (+2/-2)
To merge this branch: bzr merge lp:~blake-rouse/maas/fix-bug-1303915-1.5
Reviewer Review Type Date Requested Status
Andres Rodriguez (community) 2014-04-07 Approve on 2014-04-07
Review via email: mp+214586@code.launchpad.net

Commit message

Force SM15k nodes to boot using PXE when booting with RESTAPI v2, and to force powering off.

To post a comment you must log in.
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/provisioningserver/custom_hardware/seamicro.py'
2--- src/provisioningserver/custom_hardware/seamicro.py 2014-04-07 14:08:47 +0000
3+++ src/provisioningserver/custom_hardware/seamicro.py 2014-04-07 17:26:39 +0000
4@@ -321,6 +321,6 @@
5 if api:
6 server = api.servers.get(server_id)
7 if power_change == "on":
8- server.power_on()
9+ server.power_on(using_pxe=True)
10 elif power_change == "off":
11- server.power_off()
12+ server.power_off(force=True)

Subscribers

People subscribed via source and target branches

to all changes: