#NEWLINE# def validate_conf( middleware_conf ) : #NEWLINE# #INDENT# mandatory = [ 'storlet_logcontainer' , 'lxc_root' , 'cache_dir' , 'log_dir' , 'script_dir' , 'storlets_dir' , 'pipes_dir' , 'docker_repo' , 'restart_linux_container_timeout' ] #NEWLINE# for key in mandatory : #NEWLINE# #INDENT# if ( key not in middleware_conf ) : #NEWLINE# #INDENT# raise StorletConfigError ( 'Key {} is missing in configuration' . format ( key ) )