@memoized
def volume_backup_supported(request):
 cinder_config = getattr(settings, 'OPENSTACK_CINDER_FEATURES', {})
 return cinder_config.get('enable_backup', False)

@ memoized def volume_backup_supported ( request ) : cinder_config = getattr ( settings , 'OPENSTACK_CINDER_FEATURES' , { } ) return cinder_config . get ( 'enable_backup' , False )
this method will determine if cinder supports backup .