]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Merge "Convert heat.common.template_format to use C yaml"
authorJenkins <jenkins@review.openstack.org>
Fri, 23 Aug 2013 06:33:46 +0000 (06:33 +0000)
committerGerrit Code Review <review@openstack.org>
Fri, 23 Aug 2013 06:33:46 +0000 (06:33 +0000)
1  2 
heat/common/template_format.py
heat/tests/test_provider_template.py

index fe8b4fb0989268eb47533802f2952a863ea96f73,fe5c4e985098b50ea94e23fcc95cf09991c66847..a77b30dd9b09fd9bcbc646751141e47e73a8f31a
@@@ -37,13 -40,13 +46,13 @@@ yaml_loader.add_constructor(u'tag:yaml.
  # datetime.data which causes problems in API layer when being processed by
  # openstack.common.jsonutils. Therefore, make unicode string out of timestamps
  # until jsonutils can handle dates.
- yaml.Loader.add_constructor(u'tag:yaml.org,2002:timestamp',
+ yaml_loader.add_constructor(u'tag:yaml.org,2002:timestamp',
+                             _construct_yaml_str)
+ yaml_loader.add_constructor(u'tag:yaml.org,2002:timestamp',
                              _construct_yaml_str)
- yaml.SafeLoader.add_constructor(u'tag:yaml.org,2002:timestamp',
-                                 _construct_yaml_str)
  
  
 -def parse(tmpl_str, add_template_sections=True):
 +def parse(tmpl_str):
      '''
      Takes a string and returns a dict containing the parsed structure.
      This includes determination of whether the string is using the
Simple merge