Making sure quota is always set correctly.
This commit is contained in:
parent
3db22ec3cc
commit
f1eb185798
|
@ -46,7 +46,11 @@ async function checkAllDeployments(deployments, user) {
|
||||||
)
|
)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// system may have restarted, need to re-verify
|
// system may have restarted, need to re-verify
|
||||||
if (err != null && err.code === "InvalidClientTokenId") {
|
if (
|
||||||
|
err != null &&
|
||||||
|
err.code === "InvalidClientTokenId" &&
|
||||||
|
deployment.quota
|
||||||
|
) {
|
||||||
await verifyDeployment({
|
await verifyDeployment({
|
||||||
...user,
|
...user,
|
||||||
quota: deployment.quota,
|
quota: deployment.quota,
|
||||||
|
|
Loading…
Reference in New Issue