Change value for ECODE_TEMP_NORES
authorMichael Hanselmann <hansmi@google.com>
Mon, 10 Dec 2012 15:41:42 +0000 (16:41 +0100)
committerMichael Hanselmann <hansmi@google.com>
Mon, 10 Dec 2012 16:03:53 +0000 (17:03 +0100)
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 <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/errors.py
lib/rapi/client.py

index 7fc3efe..486c638 100644 (file)
@@ -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"
index a19a09e..452fa95 100644 (file)
@@ -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"