Improve cloud init logging for proxmox builder (#10499)

This commit is contained in:
Felix Hillingshaeuser 2021-01-19 10:28:01 +01:00 committed by GitHub
parent e44cb9d7e5
commit 490616a301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,11 @@ func (s *stepFinalizeTemplateConfig) Run(ctx context.Context, state multistep.St
ui.Error(err.Error())
return multistep.ActionHalt
}
} else {
err := fmt.Errorf("cloud_init is set to true, but cloud_init_storage_pool is empty and could not be set automatically. set cloud_init_storage_pool in your configuration")
state.Put("error", err)
ui.Error(err.Error())
return multistep.ActionHalt
}
}