Merge pull request #11 from digitalocean/migrate-padding
migrate: insert required request structure padding
This commit is contained in:
commit
d473469e69
@ -277,12 +277,14 @@ func (l *Libvirt) Migrate(dom string, dest string, flags MigrateFlags) error {
|
|||||||
// For now, using the same zero'd values as done by virsh will be Good Enough.
|
// For now, using the same zero'd values as done by virsh will be Good Enough.
|
||||||
payload := struct {
|
payload := struct {
|
||||||
Domain Domain
|
Domain Domain
|
||||||
|
Padding [4]byte
|
||||||
DestinationURI string
|
DestinationURI string
|
||||||
RemoteParameters uint32
|
RemoteParameters uint32
|
||||||
CookieIn uint32
|
CookieIn uint32
|
||||||
Flags MigrateFlags
|
Flags MigrateFlags
|
||||||
}{
|
}{
|
||||||
Domain: *d,
|
Domain: *d,
|
||||||
|
Padding: [4]byte{0x0, 0x0, 0x0, 0x1},
|
||||||
DestinationURI: dest,
|
DestinationURI: dest,
|
||||||
RemoteParameters: 0,
|
RemoteParameters: 0,
|
||||||
CookieIn: 0,
|
CookieIn: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user