如何在openstack中使用字符串和参数

如何在openstack中使用字符串和参数,openstack,heat,Openstack,Heat,我已经定义了一个构建参数,我想在资源中使用一个字符串,但是我得到了下面的错误 分析模板时出错file:///update.yaml 在此上下文中不允许映射值 在“”中,第14行第46列 heat_template_version: 2015-04-30 description: A base Server parameters: build: type: string description: application build number resources: ser

我已经定义了一个构建参数,我想在资源中使用一个字符串,但是我得到了下面的错误

分析模板时出错file:///update.yaml 在此上下文中不允许映射值 在“”中,第14行第46列

heat_template_version: 2015-04-30
description: A base Server
parameters:
  build:
    type: string
    description: application build number
resources:
  server1:
    type: OS::Nova::Server
    properties:
      flavor: y6.tiny
      name: server1
      networks: [network: 45d06e78-3952-460e-bdba-1cf674621c3e]
      image: component-{ get_param: build }
      key_name: key
      security_groups:
        - DevOps-Sec

你真的在传递参数值吗?尝试将模板中“build”的默认值设置为最近的build编号。

是否确实传递了参数值?尝试将模板中“build”的默认值设置为最近的版本号