[ovirt-users] what is detach_only with VM delete

Fabrice Bacchella fabrice.bacchella at orange.fr
Tue Apr 12 09:56:15 UTC 2016


I'm using the python sdk to detroy VM.

I supposed the param action.vm.disks.detach_only is the same thing that the check box "Remove Disk(s)"

But once i try to manage it with:
action_params = params.Action(
    vm=params.VM(
        disks=params.Disks(
            detach_only=detach_only_flag,
        ),
    ),
)

The disk is not destroyed, whatever detach_only_flag is True of False. If detach_only is not defined in params.Disks, everything is fine, the disk is destroyed.

But the included comments in brokers.py says:
[@param action.vm.disks.detach_only: boolean]

Did I miss something ?




More information about the Users mailing list