~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/lib/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:
9
9
        self.msg = msg
10
10
 
11
11
 
12
 
class DeployerParser(object):
13
 
 
14
 
    def __init__(self, data, format="yaml"):
15
 
        try:
16
 
            self.parsed = yaml.safe_load(data)
17
 
        except yaml.YAMLError, exc:
18
 
            raise ProofError(
19
 
                [
20
 
                    data,
21
 
                    str(exc)
22
 
                ],
23
 
                'Could not parse the yaml provided.'
24
 
            )
25
 
 
26
 
 
27
12
class CharmProof(object):
28
13
 
29
14
    @staticmethod