Manager: allow setup to finish without Blender #104306
@ -274,14 +274,15 @@ func (f *Flamenco) SaveSetupAssistantConfig(e echo.Context) error {
|
|||||||
|
|
||||||
logger = logger.With().Interface("config", setupAssistantCfg).Logger()
|
logger = logger.With().Interface("config", setupAssistantCfg).Logger()
|
||||||
|
|
||||||
isConfigIncomplete := setupAssistantCfg.BlenderExecutable.Cause == nil ||
|
isConfigInvalid := setupAssistantCfg.StorageLocation == "" ||
|
||||||
setupAssistantCfg.BlenderExecutable.Input == nil ||
|
setupAssistantCfg.BlenderExecutable.IsUsable == nil
|
||||||
setupAssistantCfg.BlenderExecutable.IsUsable == nil ||
|
|
||||||
setupAssistantCfg.BlenderExecutable.Path == nil
|
|
||||||
|
|
||||||
if setupAssistantCfg.BlenderExecutable.Source != "default" && isConfigIncomplete {
|
isConfigIncomplete := setupAssistantCfg.BlenderExecutable.Path == nil ||
|
||||||
logger.Warn().Msg("setup assistant: configuration is incomplete, unable to accept")
|
setupAssistantCfg.BlenderExecutable.Input == nil
|
||||||
return sendAPIError(e, http.StatusBadRequest, "configuration is incomplete")
|
|
||||||
|
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()
|
conf := f.config.Get()
|
||||||
|
Loading…
Reference in New Issue
Block a user