diff --git a/initialize/config.go b/initialize/config.go index 17931af..e630f91 100644 --- a/initialize/config.go +++ b/initialize/config.go @@ -39,6 +39,9 @@ type CloudConfigUnit interface { } func ApplyHostname(hostname string) error { + if hostname == "" { + return nil + } if err := system.SetHostname(hostname); err != nil { return fmt.Errorf("error setting hostname: %w", err) }