projects
/
ganeti-local
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LUSetInstanceParams: save cluster
[ganeti-local]
/
lib
/
jstore.py
diff --git
a/lib/jstore.py
b/lib/jstore.py
index
7424b7b
..
4d9189e
100644
(file)
--- a/
lib/jstore.py
+++ b/
lib/jstore.py
@@
-134,6
+134,11
@@
def InitAndVerifyQueue(must_lock):
# There must be a serious problem
raise errors.JobQueueError("Can't read/parse the job queue serial file")
# There must be a serious problem
raise errors.JobQueueError("Can't read/parse the job queue serial file")
+ if not must_lock:
+ # There's no need for more error handling. Closing the lock file below in
+ # case of an error will unlock it anyway.
+ queue_lock.Unlock()
+
except:
queue_lock.Close()
raise
except:
queue_lock.Close()
raise