lang: core: embedded: provisioner: Skip bmc if empty

This commit is contained in:
James Shubin
2025-01-17 12:34:27 -05:00
parent a0d500a602
commit 7694da4241

View File

@@ -822,6 +822,7 @@ class base:host($name, $config) {
Before => Print["ready"],
}
if "${bmc_uri}" != "" {
bmc:power "${bmc_uri}" { # TODO: Name() API is not yet stable
#password => "hunter2",
insecure_password => true, # XXX: get from uri for now
@@ -830,6 +831,7 @@ class base:host($name, $config) {
Meta:poll => 60, # required until BMC's support real events!
}
}
##$str_true = convert.format_bool(true)
##$str_false = convert.format_bool(false)