diff options
Diffstat (limited to 'heatclient/common/template_format.py')
-rw-r--r-- | heatclient/common/template_format.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/heatclient/common/template_format.py b/heatclient/common/template_format.py index fb275f6..6aaf1e0 100644 --- a/heatclient/common/template_format.py +++ b/heatclient/common/template_format.py @@ -39,6 +39,8 @@ def _construct_yaml_str(self, node): # Override the default string handling function # to always return unicode objects return self.construct_scalar(node) + + yaml_loader.add_constructor(u'tag:yaml.org,2002:str', _construct_yaml_str) # Unquoted dates like 2013-05-23 in yaml files get loaded as objects of type # datetime.data which causes problems in API layer when being processed by |