summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-01-24 07:56:49 +0100
committerGitHub <noreply@github.com>2023-01-24 07:56:49 +0100
commit3e1762e97ea44dc133b793ebbd00c3376261ac6f (patch)
tree58c7746d954f3637a1d7aece82003a205c95f66f /src
parent8c957ca3d63a0d827ee4c560f11a4f6436ba5cc8 (diff)
parentb5e90197263bd59b62cf24c631cc4973c4514dd9 (diff)
downloadvyos-1x-3e1762e97ea44dc133b793ebbd00c3376261ac6f.tar.gz
vyos-1x-3e1762e97ea44dc133b793ebbd00c3376261ac6f.zip
Merge pull request #1779 from dmbaturin/T4951-resource-error
op mode: T4951: add InsufficientResources error
Diffstat (limited to 'src')
-rw-r--r--src/services/api/graphql/session/errors/op_mode_errors.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/services/api/graphql/session/errors/op_mode_errors.py b/src/services/api/graphql/session/errors/op_mode_errors.py
index 4029fd0a1..a8a9ee426 100644
--- a/src/services/api/graphql/session/errors/op_mode_errors.py
+++ b/src/services/api/graphql/session/errors/op_mode_errors.py
@@ -4,6 +4,7 @@ op_mode_err_msg = {
"UnconfiguredSubsystem": "subsystem is not configured or not running",
"DataUnavailable": "data currently unavailable",
"PermissionDenied": "client does not have permission",
+ "InsufficientResources": "insufficient system resources"
"IncorrectValue": "argument value is incorrect",
"UnsupportedOperation": "operation is not supported (yet)",
}
@@ -11,6 +12,7 @@ op_mode_err_msg = {
op_mode_err_code = {
"UnconfiguredSubsystem": 2000,
"DataUnavailable": 2001,
+ "InsufficientResources": 2002,
"PermissionDenied": 1003,
"IncorrectValue": 1002,
"UnsupportedOperation": 1004,