def get_vmdk_detach_config_spec(client_factory, device,
                                destroy_disk=False):
    config_spec = client_factory.create('ns0:VirtualMachineConfigSpec')

    device_config_spec = []
    virtual_device_config_spec = detach_virtual_disk_spec(client_factory,
                                                          device,
                                                          destroy_disk)

    device_config_spec.append(virtual_device_config_spec)

    config_spec.deviceChange = device_config_spec
    return config_spec
Builds the vmdk detach config spec.
dataset/ETHPy150Open openstack/nova/nova/virt/vmwareapi/vm_util.py/get_vmdk_detach_config_spec