diff options
-rw-r--r-- | xenstoreclient/xenstore.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xenstoreclient/xenstore.go b/xenstoreclient/xenstore.go index 0d3e2bb..b6a5a86 100644 --- a/xenstoreclient/xenstore.go +++ b/xenstoreclient/xenstore.go @@ -374,7 +374,7 @@ func (xs *CachedXenStore) Write(path string, value string) error { } } err := xs.xs.Write(path, value) - if err != nil { + if err == nil { xs.writeCache[path] = value xs.lastCommit[path] = time.Now() } |