~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/views/api/proof.py

  • Committer: Rick Harding
  • Date: 2013-10-31 17:27:29 UTC
  • mfrom: (435 trunk)
  • mto: (436.1.2 api-doc-updates)
  • mto: This revision was merged to the branch mainline in revision 437.
  • Revision ID: rick.harding@canonical.com-20131031172729-u7cxl8ox3awl2o55
Update deployer version and it's deps, make that work

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from charmworld.lib.deployer import parse_deployer
1
2
from charmworld.lib.proof import (
2
3
    CharmProof,
3
 
    DeployerParser,
4
4
    ProofError,
5
5
)
6
6
from charmworld.models import (
114
114
        return json_response(400, response_data)
115
115
 
116
116
    try:
117
 
        deployer = DeployerParser(deployer_string, format=deployer_format)
118
 
        deployer_data = deployer.parsed
 
117
        deployer_data = parse_deployer(deployer_string, format=deployer_format)
119
118
    except ProofError, exc:
120
119
        # If we cannot parse the config file there's nothing more to do.
121
120
        # Return immediately.