def build_clonespec(config_spec, object_ref, reloc_spec, template):
 if (reloc_spec.diskMoveType == QUICK_LINKED_CLONE):
  return vim.vm.CloneSpec(template=template, location=reloc_spec, config=config_spec, snapshot=object_ref.snapshot.currentSnapshot)
 else:
  return vim.vm.CloneSpec(template=template, location=reloc_spec, config=config_spec)

def build_clonespec ( config_spec , object_ref , reloc_spec , template ) : if ( reloc_spec . diskMoveType == QUICK_LINKED_CLONE ) : return vim . vm . CloneSpec ( template = template , location = reloc_spec , config = config_spec , snapshot = object_ref . snapshot . currentSnapshot ) else : return vim . vm . CloneSpec ( template = template , location = reloc_spec , config = config_spec )
returns the clone spec .