<s> from oslo_config import cfg <EOL> from pecan import hooks <EOL> OPTS = [ <EOL> cfg . StrOpt ( '<STR_LIT>' , <EOL> default = '<STR_LIT>' , <EOL> help = '<STR_LIT>' ) , <EOL> ] <EOL> def list_opts ( ) : <EOL> yield None , OPTS <EOL> CONF = cfg . CONF <EOL> CONF . register_opts ( OPTS ) <EOL> class ReleaseReporter ( hooks . PecanHook ) : <EOL> priority = <NUM_LIT> <EOL> def after ( self , state ) : <EOL> release_info = CONF . get ( '<STR_LIT>' ) <EOL> if release_info is not None : <EOL> release_dict = { <EOL> '<STR_LIT>' : release_info , <EOL> } <EOL> state . response . headers . update ( release_dict ) </s>
