#NEWLINE# def get_vmdk_adapter_type( adapter_type ) : #NEWLINE# #INDENT# 'Return the adapter type to be used in vmdk descriptor.\n\n    Adapter type in vmdk descriptor is same for LSI-SAS, LSILogic & ParaVirtual\n    because Virtual Disk Manager API does not recognize the newer controller\n    types.\n    ' #NEWLINE# if ( adapter_type in [ constants . ADAPTER_TYPE_LSILOGICSAS , constants . ADAPTER_TYPE_PARAVIRTUAL ] ) : #NEWLINE# #INDENT# vmdk_adapter_type = constants . DEFAULT_ADAPTER_TYPE #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# vmdk_adapter_type = vmdk_adapter_type #NEWLINE# #UNINDENT# return vmdk_adapter_type