From: Michael Hanselmann Date: Mon, 10 Dec 2012 15:41:42 +0000 (+0100) Subject: Change value for ECODE_TEMP_NORES X-Git-Tag: v2.7.0beta1~364 X-Git-Url: https://code.grnet.gr/git/ganeti-local/commitdiff_plain/e2dd6ece69864e517b55ca209d887d907c6f0273 Change value for ECODE_TEMP_NORES Unfortunately there was a bug in commit 518a45e whereby ECODE_TEMP_NORES had the same value as ECODE_NORES, leading to failures in a Haskell test. Of course this would also have affected other users of the constant. Signed-off-by: Michael Hanselmann Reviewed-by: Iustin Pop --- diff --git a/lib/errors.py b/lib/errors.py index 7fc3efe..486c638 100644 --- a/lib/errors.py +++ b/lib/errors.py @@ -31,7 +31,7 @@ ECODE_RESOLVER = "resolver_error" ECODE_NORES = "insufficient_resources" #: Temporarily out of resources; operation can be tried again -ECODE_TEMP_NORES = "insufficient_resources" +ECODE_TEMP_NORES = "temp_insufficient_resources" #: Wrong arguments (at syntax level) ECODE_INVAL = "wrong_input" diff --git a/lib/rapi/client.py b/lib/rapi/client.py index a19a09e..452fa95 100644 --- a/lib/rapi/client.py +++ b/lib/rapi/client.py @@ -121,7 +121,7 @@ ECODE_RESOLVER = "resolver_error" ECODE_NORES = "insufficient_resources" #: Temporarily out of resources; operation can be tried again -ECODE_TEMP_NORES = "insufficient_resources" +ECODE_TEMP_NORES = "temp_insufficient_resources" #: Wrong arguments (at syntax level) ECODE_INVAL = "wrong_input"