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