From 8afb4bbb1f2a1c223cb6c8348cfc146e77e73a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20K=C3=A1cha?= <ph@cesnet.cz> Date: Wed, 25 Feb 2015 17:15:31 +0100 Subject: [PATCH] Revert "Changed opening last id file - it's now automatically created even when only reading" Brown paper bag commit This reverts commit 1fc362c32da4b0a701badc7261d6fd7acfe4c163. --- warden3/warden_client/warden_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warden3/warden_client/warden_client.py b/warden3/warden_client/warden_client.py index 7b1fb43..c177682 100644 --- a/warden3/warden_client/warden_client.py +++ b/warden3/warden_client/warden_client.py @@ -448,7 +448,7 @@ class Client(object): if not idf: return None try: - with open(idf, "w+") as f: + with open(idf, "r") as f: id = int(f.read()) except (ValueError, IOError) as e: Error(message="Reading id file \"%s\" failed, relying on server" % idf, -- GitLab