def get_vmdk_adapter_type(adapter_type):
 if (adapter_type in [constants.ADAPTER_TYPE_LSILOGICSAS, constants.ADAPTER_TYPE_PARAVIRTUAL]):
  vmdk_adapter_type = constants.DEFAULT_ADAPTER_TYPE
 else:
  vmdk_adapter_type = adapter_type
 return vmdk_adapter_type

def get_vmdk_adapter_type ( adapter_type ) : if ( adapter_type in [ constants . ADAPTER_TYPE_LSILOGICSAS , constants . ADAPTER_TYPE_PARAVIRTUAL ] ) : vmdk_adapter_type = constants . DEFAULT_ADAPTER_TYPE else : vmdk_adapter_type = adapter_type return vmdk_adapter_type
return the adapter type to be used in vmdk descriptor .