def _get_volume_create_az_value(instance):
 if CONF.cinder.cross_az_attach:
  return None
 return instance.availability_zone

def _get_volume_create_az_value ( instance ) : if CONF . cinder . cross_az_attach : return None return instance . availability_zone
determine az to use when creating a volume uses the cinder .