Hi,
  Is there any intrinsic function can convert string to map/json?

When I’m writing templates for senlin resources, I use following yaml:
   profile:
     type: OS::Senlin::Profile
     properties:
       type:  os.heat.stack-1.0
       properties:
         template:  {get_file: server.yaml}

Here ‘template’ expect a json format, but get_file return a string. It would be 
good to find out a function that can translate string to json.

If we don’t have a function like that, I would be glad to add one, e.g. 
‘str_json’ . So that I can use following yaml to create senlin profile resource:
   profile:
     type: OS::Senlin::Profile
     properties:
       type:  os.heat.stack-1.0
       properties:
         template:  {str_json: {get_file: server.yaml}}



Best Regards,
Ethan Lynn
xuanlangj...@gmail.com
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to