lang: core: embedded: provisioner: Fix panic

The conditions changed for this one, make it stricter.
This commit is contained in:
James Shubin
2025-01-17 12:35:30 -05:00
parent 7694da4241
commit c8f911ec5d

View File

@@ -558,7 +558,7 @@ class base:host($name, $config) {
$handoff_type = $config->handoff || ""
$handoff_code = $config->handoff_code || ""
panic(not strings.has_prefix($handoff_code, "/"))
panic($handoff_code != "" and not strings.has_prefix($handoff_code, "/"))
# This is a giant driver://user:password@host:port/whatever URL...
$bmc_uri = $config->bmc_uri || ""