Found some spacing errors and corrected them. Now I have other errors popping up when i execute the heat create-stack command:

Just so you know. I'm newbie to heat , and I'm not that good with coding but I'm trying.

[root@localhost ~(keystone_admin)]# heat stack-create lb_autoscale -f simple.yaml -e environment.yaml
ERROR: 'unicode' object has no attribute 'get'
Traceback (most recent call last):

  File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
    incoming.message))

  File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
    return self._do_dispatch(endpoint, method, ctxt, args)

  File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
    result = getattr(endpoint, method)(ctxt, **new_args)

  File "/usr/lib/python2.7/site-packages/heat/engine/service.py", line 69, in wrapped
    return func(self, ctx, *args, **kwargs)

  File "/usr/lib/python2.7/site-packages/heat/engine/service.py", line 645, in create_stack
    owner_id)

  File "/usr/lib/python2.7/site-packages/heat/engine/service.py", line 568, in _parse_template_and_validate_stack
    stack.validate()

  File "/usr/lib/python2.7/site-packages/heat/engine/stack.py", line 446, in validate
    parameter_groups.validate()

  File "/usr/lib/python2.7/site-packages/heat/engine/parameter_groups.py", line 49, in validate
    parameters = group.get(PARAMETERS)

AttributeError: 'unicode' object has no attribute 'get'



2015-05-13 9:19 GMT+02:00 ICHIBA Sara <ichi.sara@gmail.com>:
hello people,

I wrote a simple  template in order to scale a VM in the basis of cpu utilisation. When I try to execute the heat template. I got this error:

Error parsing template file:///root/simple.yaml while parsing a block mapping
  in "<unicode string>", line 38, column 3
did not find expected key
  in "<unicode string>", line 117, column 4
I checked my template over and over to see if I missed a space somwhere in those two lines. But couldn't see anything. You can find my  template attached. Can you plz tell me if there's something wrong with it?

In advance, thanks for responding,
Sara