[CRIU] [PATCH p.haul] fix --auto_dedup forward compatibility
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Wed Feb 15 08:06:07 PST 2017
https://jira.sw.ru/browse/PSBM-60489
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
phaul/images.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/phaul/images.py b/phaul/images.py
index 18db9ec..fb336a2 100644
--- a/phaul/images.py
+++ b/phaul/images.py
@@ -84,7 +84,9 @@ def_path = "/var/local/p.haul-fs/"
self._keep_on_close = True
def set_options(self, opts):
- self.auto_dedup = opts["auto_dedup"]
+ self.auto_dedup = False
+ if "auto_dedup" in opts:
+ self.auto_dedup = opts["auto_dedup"]
self._keep_on_close = opts["keep_images"]
suf = time.strftime("-%y.%m.%d-%H.%M", time.localtime())
--
2.9.3
More information about the CRIU
mailing list