0

--properties是否可以在with中使用 yaml 数组gcloud deployment-manager

我试过类似的东西:

gcloud deployment-manager deployments create my-deployment --template my-firewall.py --properties "ips:['127.0.0.1','127.0.0.2']"

我得到:

ERROR: (gcloud) Failed to parse YAML: while parsing a flow sequence
  in "<unicode string>", line 1, column 1:
    ['127.0.0.1'
    ^ (line: 1)
expected ',' or ']', but got '<stream end>'
  in "<unicode string>", line 1, column 13:
    ['127.0.0.1'
                ^ (line: 1)

应该可以在一行上使用流样式来完成,但我认为gcloudCLI 会以逗号分隔字符串。我还没有想出逃避逗号的方法。

4

0 回答 0