From e2dd6ece69864e517b55ca209d887d907c6f0273 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Mon, 10 Dec 2012 16:41:42 +0100
Subject: [PATCH] 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 <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 lib/errors.py      | 2 +-
 lib/rapi/client.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/errors.py b/lib/errors.py
index 7fc3efed3..486c638dd 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 a19a09e7c..452fa95c8 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"
-- 
GitLab