未验证 提交 d7569b37 编写于 作者: T Thomas Strömberg 提交者: GitHub

Merge pull request #5803 from tstromberg/allow-force

Allow CPU count check to be disabled using --force
......@@ -741,7 +741,7 @@ func validateFlags(drvName string) {
} else {
cpuCount = viper.GetInt(cpus)
}
if cpuCount < minimumCPUS {
if cpuCount < minimumCPUS && !viper.GetBool(force) {
exit.UsageT("Requested cpu count {{.requested_cpus}} is less than the minimum allowed of {{.minimum_cpus}}", out.V{"requested_cpus": cpuCount, "minimum_cpus": minimumCPUS})
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册