File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
wrongsecrets-balancer/src/teams Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,15 @@ async function createTeam(req, res) {
321
321
res . status ( 500 ) . send ( { message : 'Failed to Create Instance' } ) ;
322
322
}
323
323
324
+ try {
325
+ logger . info ( `Creating challenge53 Deployment for team '${ team } '` ) ;
326
+ await createK8sChallenge53DeploymentForTeam ( { team, passcodeHash : hash } ) ;
327
+ logger . info ( `Created challenge53 Deployment for team '${ team } '` ) ;
328
+ } catch ( error ) {
329
+ logger . error ( `Error while creating challenge53 deployment for team ${ team } : ${ error . message } ` ) ;
330
+ res . status ( 500 ) . send ( { message : 'Failed to Create Instance' } ) ;
331
+ }
332
+
324
333
try {
325
334
logger . info ( `Creating role for virtual desktop in K8s '${ team } '` ) ;
326
335
await createRoleForWebTop ( team ) ;
@@ -364,15 +373,6 @@ async function createTeam(req, res) {
364
373
res . status ( 500 ) . send ( { message : 'Failed to Create Instance' } ) ;
365
374
}
366
375
367
- try {
368
- logger . info ( `Creating challenge53 Deployment for team '${ team } '` ) ;
369
- await createK8sChallenge53DeploymentForTeam ( { team, passcodeHash : hash } ) ;
370
- logger . info ( `Created challenge53 Deployment for team '${ team } '` ) ;
371
- } catch ( error ) {
372
- logger . error ( `Error while creating challenge53 deployment for team ${ team } : ${ error . message } ` ) ;
373
- res . status ( 500 ) . send ( { message : 'Failed to Create Instance' } ) ;
374
- }
375
-
376
376
try {
377
377
loginCounter . inc ( { type : 'registration' , userType : 'user' } , 1 ) ;
378
378
You can’t perform that action at this time.
0 commit comments