[CRIU] fix --auto_dedup forward compatibility

Submitted by Pavel Tikhomirov on Feb. 15, 2017, 4:06 p.m.

Details

Message ID 20170215160607.24194-1-ptikhomirov@virtuozzo.com
State New
Series "fix --auto_dedup forward compatibility"
Headers show

Commit Message

Pavel Tikhomirov Feb. 15, 2017, 4:06 p.m.
https://jira.sw.ru/browse/PSBM-60489

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
---
 phaul/images.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

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())