def clone_vm_spec(client_factory, location,
                  power_on=False, snapshot=None, template=False, config=None):
    clone_spec = client_factory.create('ns0:VirtualMachineCloneSpec')
    clone_spec.location = location
    clone_spec.powerOn = power_on
    if snapshot:
        clone_spec.snapshot = snapshot
    if config is not None:
        clone_spec.config = config
    clone_spec.template = template
    return clone_spec
Test that an ObjectType attribute can be created.
dataset/ETHPy150Open openstack/nova/nova/virt/vmwareapi/vm_util.py/clone_vm_spec--crossover with--dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/tests/unit/core/factories/test_attribute_values.py/TestAttributeValueFactory.test_create_object_type