platform/machine/oci: update cluster logic to detect empty configs
Currently the cluster will error out if the userdata is not an
Ignition config. This updates the logic to error out if the
userdata is not Ignition or empty.
@@ -70,7 +70,7 @@ func (oc *cluster) NewMachine(userdata *conf.UserData) (platform.Machine, error)
return nil, err
}
- if !conf.IsIgnition() {
+ if !conf.IsIgnition() && !conf.IsEmpty() {
return nil, fmt.Errorf("only Ignition is supported on OCI")
}
