Quellcode durchsuchen

remove provisioning check on auto-ecr

Alexander Belanger vor 5 Jahren
Ursprung
Commit
519557cb68
1 geänderte Dateien mit 9 neuen und 11 gelöschten Zeilen
  1. 9 11
      server/api/git_action_handler.go

+ 9 - 11
server/api/git_action_handler.go

@@ -92,20 +92,18 @@ func (app *App) createGitActionFromForm(
 			return nil
 		}
 
-		if reg.InfraID != 0 {
-			_reg := registry.Registry(*reg)
-			regAPI := &_reg
+		_reg := registry.Registry(*reg)
+		regAPI := &_reg
 
-			// parse the name from the registry
-			nameSpl := strings.Split(form.ImageRepoURI, "/")
-			repoName := nameSpl[len(nameSpl)-1]
+		// parse the name from the registry
+		nameSpl := strings.Split(form.ImageRepoURI, "/")
+		repoName := nameSpl[len(nameSpl)-1]
 
-			err := regAPI.CreateRepository(*app.Repo, repoName)
+		err = regAPI.CreateRepository(*app.Repo, repoName)
 
-			if err != nil {
-				app.handleErrorInternal(err, w)
-				return nil
-			}
+		if err != nil {
+			app.handleErrorInternal(err, w)
+			return nil
 		}
 	}