def construct_snap_name(volume):
 if is_snapcopy_enabled(volume):
  return ('snap-as-vol-' + six.text_type(volume.name_id))
 else:
  return ('tmp-snap-' + six.text_type(volume.name_id))

def construct_snap_name ( volume ) : if is_snapcopy_enabled ( volume ) : return ( 'snap-as-vol-' + six . text_type ( volume . name_id ) ) else : return ( 'tmp-snap-' + six . text_type ( volume . name_id ) )
return snapshot name .