云形式中允许的值
我正在使用一个参数询问他想要D驱动器是否想要的用户天气,以便这样做我正在使用条件。
我试图给出约束描述,允许的值参数属性。
NeedVolumeD:
Type: String
Description: Do you want a D drive? Enter Yes or No
ConstraintDescription: Enter Yes or No
AllowedValues:
- Yes
- No
但这是给我一个真实和错误的下拉列表,而在我的代码下,我试图使用“是和否”,尽管这在某种程度上是有效的。
我在这里不了解什么。
I am using a parameter to ask a user weather he wants a D drive or not, to do this I am using conditions.
I tried to give a Constraint Description and Allowed Values a parameter property.
NeedVolumeD:
Type: String
Description: Do you want a D drive? Enter Yes or No
ConstraintDescription: Enter Yes or No
AllowedValues:
- Yes
- No
But this is giving me a dropdown of true and false whereas later in my code under Conditions I am trying to use Yes and No, although this is somehow working.
What am I not understanding here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须使用单引号:
否则,yaml(旧版本)将自动将
是/否
转换为true/false 。
You have to use single quotes:
Otherwise, YAML (old version) will automatically convert
Yes/No
intotrue/false
.