zoukankan      html  css  js  c++  java
  • Bug for heat template: ResourceGroup中的refs属性不支持索引

    https://bugs.launchpad.net/heat/+bug/1434586


    minimal reproducer:

    $ cat refs.yaml
    heat_template_version: 2015-04-30
    resources:
      group:
        type: OS::Heat::ResourceGroup
        properties:
          count: 2
          resource_def:
            type: OS::Heat::RandomString
    outputs:
      allrefs:
        value: { get_attr: [ group, refs ] }
      oneref:
        value: { get_attr: [group, refs, 0 ] }

    $ heat stack-create refs -f refs.yaml
    $ heat stack-list
    +--------------------------------------+------------+-----------------+----------------------+
    | id | stack_name | stack_status | creation_time |
    +--------------------------------------+------------+-----------------+----------------------+
    | 5a7dec43-ebe8-46e5-a1e0-46871bd67da4 | refs | CREATE_COMPLETE | 2015-03-20T14:07:31Z |
    +--------------------------------------+------------+-----------------+----------------------+

    $ heat output-show refs allrefs
    [
      "a4t2y5IuYLJzEZRVdFCEKhAnaWfI9vTi",
      "5HwxHxZN41J78l42OKH07igJif8Pk7tn"
    ]

    $ heat output-show refs oneref
    [
      "a4t2y5IuYLJzEZRVdFCEKhAnaWfI9vTi",
      "5HwxHxZN41J78l42OKH07igJif8Pk7tn"
    ]


  • 相关阅读:
    CSS 图像左右对齐
    CSS 图像居中对齐
    CSS 图像大小
    CSS表单3 光标样式 (每个位置鼠标放上去的样式不同)
    CSS表单2 组件排版
    对于下一代互联网的畅想
    VMware nat可以 桥接不可以
    jsp 入门
    flask_whooshalchemyplus 搜索
    PasswordField 无法设置默认值
  • 原文地址:https://www.cnblogs.com/double12gzh/p/10166218.html
Copyright © 2011-2022 走看看