When using SessionClient we get following error for files.
2016-06-06 17:16:08.664 19003 ERROR oslo_messaging._drivers.common [req-01957d20-bf8f-4df9-9aff-bba439fe14d7 demo demo - default default] Returning exception Failed validating stack template using Heat endpoint at region "RegionOne" due to "<heat.engine.template_files.TemplateFiles object at 0x7fc1ce393390> is not JSON serializable" to caller
2016-06-06 17:16:08.666 19003 ERROR oslo_messaging._drivers.common [req-01957d20-bf8f-4df9-9aff-bba439fe14d7 demo demo - default default] ['Traceback (most recent call last):\n', ' File "/opt/stack/heat/heat/common/context.py", line 400, in wrapped\n return func(self, ctx, *args, **kwargs)\n', ' File "/opt/stack/heat/heat/engine/service.py", line 817, in create_stack\n template_id)\n', ' File "/opt/stack/heat/heat/engine/service.py", line 692, in _parse_template_and_validate_stack\n stack.validate()\n', ' File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 147, in wrapper\n return f(*args, **kwargs)\n', ' File "/opt/stack/heat/heat/engine/stack.py", line 767, in validate\n result = res.validate()\n', ' File "/opt/stack/heat/heat/engine/resources/openstack/heat/remote_stack.py", line 160, in validate\n raise exception.StackValidationFailed(message=msg)\n', 'StackValidationFailed: Failed validating stack template using Heat endpoint at region "RegionOne" due to "<heat.engine.template_files.TemplateFiles object at 0x7fc1ce393390> is not JSON serializable"\n']
Fix proposed to branch: master /review. openstack. org/325984
Review: https:/