#NEWLINE# def __init__( self , app , conf , * args , **kwargs ) : #NEWLINE# #INDENT# self . app = args #NEWLINE# self . devices = conf . get ( 'devices' , '/srv/node' ) #NEWLINE# swift_dir = conf . get ( 'swift_dir' , '/etc/swift' ) #NEWLINE# self . logger = get_logger ( conf , log_route = 'recon' ) #NEWLINE# self . recon_cache_path = conf . get ( 'recon_cache_path' , '/var/cache/swift' ) #NEWLINE# self . object_recon_cache = os . path . join ( self . recon_cache_path , 'object.recon' ) #NEWLINE# self . container_recon_cache = os . path . join ( self . recon_cache_path , 'container.recon' ) #NEWLINE# self . account_recon_cache = os . path . join ( self . recon_cache_path , 'account.recon' ) #NEWLINE# self . drive_recon_cache = os . path . join ( self . recon_cache_path , 'drive.recon' ) #NEWLINE# self . account_ring_path = os . path . join ( swift_dir , 'account.ring.gz' ) #NEWLINE# self . container_ring_path = os . path . join ( swift_dir , 'container.ring.gz' ) #NEWLINE# self . rings = [ self . account_ring_path , self . container_ring_path ] #NEWLINE# for policy in POLICIES : #NEWLINE# #INDENT# self . rings . append ( os . path . join ( swift_dir , ( policy . ring_name + '.ring.gz' ) ) ) #NEWLINE# #UNINDENT# self . mount_check = config_true_value ( conf . get ( 'mount_check' , 'true' ) )