Manager: allow setup to finish without Blender #104306

Manually merged
Sybren A. Stüvel merged 34 commits from abelli/flamenco:issue100195 into main 2024-09-09 11:22:42 +02:00
Showing only changes of commit 30aa468621 - Show all commits

View File

@ -274,14 +274,15 @@ func (f *Flamenco) SaveSetupAssistantConfig(e echo.Context) error {
logger = logger.With().Interface("config", setupAssistantCfg).Logger()
isConfigIncomplete := setupAssistantCfg.BlenderExecutable.Cause == nil ||
setupAssistantCfg.BlenderExecutable.Input == nil ||
setupAssistantCfg.BlenderExecutable.IsUsable == nil ||
setupAssistantCfg.BlenderExecutable.Path == nil
isConfigInvalid := setupAssistantCfg.StorageLocation == "" ||
setupAssistantCfg.BlenderExecutable.IsUsable == nil
if setupAssistantCfg.BlenderExecutable.Source != "default" && isConfigIncomplete {
logger.Warn().Msg("setup assistant: configuration is incomplete, unable to accept")
return sendAPIError(e, http.StatusBadRequest, "configuration is incomplete")
isConfigIncomplete := setupAssistantCfg.BlenderExecutable.Path == nil ||
setupAssistantCfg.BlenderExecutable.Input == nil
if isConfigInvalid || setupAssistantCfg.BlenderExecutable.Source != "default" && isConfigIncomplete {
logger.Warn().Msg("setup assistant: configuration is invalid or incomplete, unable to accept")
return sendAPIError(e, http.StatusBadRequest, "configuration is invalid or incomplete")
}
conf := f.config.Get()