[ovirt-users] how to rename disk alias on python sdk

Ondra Machacek omachace at redhat.com
Thu Dec 11 11:44:21 UTC 2014


Hi,

update method has now only vm disk, not floating disk.

Ondra

----- Original Message -----
> From: "Amedeo Salvati" <amedeo at oscert.net>
> To: users at ovirt.org
> Sent: Thursday, December 11, 2014 11:29:07 AM
> Subject: [ovirt-users] how to rename disk alias on python sdk
> 
> Hello all,
> 
> I want to rename a disk alias using python sdk, but I cannot find an update
> method for object returned from api.disks.get (like cdrom, vm, datacenter
> objects).
> 
> Simplified code is:
> 
> d1 = api.disks.get(id="7408f728-97e5-4b10-beb7-d9a70083797e")
> d1.get_alias()
> 'FSBOVRHEL66TMP-1412_Disk1' <-- OLD alias
> d1.set_alias('PIPPO_Disk1')
> d1.get_alias()
> 'PIPPO_Disk1' <-- NEW alias
> 
> but after that I cannot find a method like d1.update() to "commit" changes of
> disk object, what I miss?
> 
> Best regards
> Amedeo Salvati
> 
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 



More information about the Users mailing list