[ovirt-users] Setting PXE boot via Python API

Jamie Lawrence jlawrence at squaretrade.com
Fri Dec 4 13:02:05 EST 2015


> On Dec 4, 2015, at 12:50 AM, Juan Hernández <jhernand at redhat.com> wrote:
> 
> On 12/03/2015 10:59 PM, Jamie Lawrence wrote:

>>        vm.set_os(params.OperatingSystem(cmdline=kernel_cmd))
> 
> This line ^ is overwriting the complete OS configuration that you set
> before, so the change to the boot device is lost. If you enable the
> debug output of the SDK (with debug=True in the constructor of the API
> object) you will see that this is what is sent:

Oh, thank you. That’s what I was missing. (Also, debug=True will make life
nicer.)

-j

-- 
Jamie Lawrence | jlawrence at squaretrade.com



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2763 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/users/attachments/20151204/8f7371e2/attachment.p7s>


More information about the Users mailing list