Commit 9a881ad7 authored by Marco Mariani's avatar Marco Mariani

both slapos.xml and slapos.xml.zip must exists for an attempt to backup

parent 5c613eb5
......@@ -281,7 +281,7 @@ class Computer(object):
path_to_archive = path_to_xml + '.zip'
if os.path.exists(path_to_archive):
if os.path.exists(path_to_archive) and os.path.exists(path_to_xml):
# the archive file exists, we only backup if something has changed
with open(path_to_xml, 'rb') as fin:
if fin.read() == new_pretty_xml:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment