File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
wrongsecrets-balancer/src Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1298,7 +1298,8 @@ const deleteDesktopPodForTeam = async (team) => {
1298
1298
} ;
1299
1299
module . exports . deleteDesktopPodForTeam = deleteDesktopPodForTeam ;
1300
1300
1301
- const getJuiceShopInstanceForTeamname = ( teamname ) =>
1301
+ const getJuiceShopInstanceForTeamname = ( teamname ) => {
1302
+ logger . info ( 'checking readiness' ) ;
1302
1303
k8sAppsApi
1303
1304
. readNamespacedDeployment ( `t-${ teamname } -wrongsecrets` , `t-${ teamname } ` )
1304
1305
. then ( ( res ) => {
@@ -1309,8 +1310,12 @@ const getJuiceShopInstanceForTeamname = (teamname) =>
1309
1310
} ;
1310
1311
} )
1311
1312
. catch ( ( error ) => {
1313
+ if ( error . response . body . message . contains ( 'No such container' ) ) {
1314
+ return ;
1315
+ }
1312
1316
throw new Error ( error . response . body . message ) ;
1313
1317
} ) ;
1318
+ } ;
1314
1319
module . exports . getJuiceShopInstanceForTeamname = getJuiceShopInstanceForTeamname ;
1315
1320
1316
1321
const updateLastRequestTimestampForTeam = ( teamname ) => {
You can’t perform that action at this time.
0 commit comments