を使ってYAMLするには、私は、次のYAMLファイルを持っている:私は(デフォルトが存在しない場合)private_network_idとfloating_ipするキー - >デフォルトを追加したい書き込みパラメータと値のpython
heat_template_version: 2015-10-15
parameters:
image:
type: string
label: Image name or ID
default: CirrOS
private_network_id:
type: string
label: Private network name or ID
floating_ip:
type: string
を、デフォルトのキーへ私は値を追加したい(ユーザーから取得する)
これをどのようにしてPythonで実現できますか? (免責事項:私はパッケージの作者午前)ラウンドトリップあなたが使用ruamel.yaml
を行う必要があり、この種の
heat_template_version: 2015-10-15
parameters:
image:
type: string
label: Image name or ID
default: CirrOS
private_network_id:
type: string
label: Private network name or ID
default: <private_network_id>
floating_ip:
type: string
default: <floating_ip>
ありがとうございました...それは働きました –