~canonical-ci-engineering/adt-request-proxy/trunk

« back to all changes in this revision

Viewing changes to adt_request_proxy/__init__.py

  • Committer: Thomi Richards
  • Date: 2015-03-10 20:41:29 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: thomi.richards@canonical.com-20150310204129-18r5snvzgfe0p7do
Feedback from code review.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        v1.test_new,
36
36
        methods=['POST']
37
37
    )
38
 
    app.add_url_rule(
39
 
        '/v1/test/<string:request_id>',
40
 
        'test_check',
41
 
        v1.test_check,
42
 
        methods=['GET']
43
 
    )
44
38
 
45
39
    @app.errorhandler(errors.MissingRequestParameters)
46
40
    def handle_invalid_usage(error):
67
61
    config = configparser.ConfigParser()
68
62
    config.read(args.conf)
69
63
    app.extensions['rabbit'] = RabbitQueuer(config)
 
64
    app.config['SWIFT_URL'] = config['swift']['public_url']
70
65
 
71
66
    app.run()
72
67