From d593d9b3bf5afff0d126c0cbd719a1049040fc2c Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 30 May 2017 11:25:57 +0200 Subject: [PATCH] + fix hyperv node-snapshot mode --- apps/hyperv/2012/local/mode/nodesnapshot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/hyperv/2012/local/mode/nodesnapshot.pm b/apps/hyperv/2012/local/mode/nodesnapshot.pm index 91dc6fde3..4b77656d8 100644 --- a/apps/hyperv/2012/local/mode/nodesnapshot.pm +++ b/apps/hyperv/2012/local/mode/nodesnapshot.pm @@ -118,7 +118,7 @@ sub manage_selection { my ($name, $status, $note, $content) = ($1, $2, $3, $4); my %chkpt = (backing => -1, snapshot => -1); while ($content =~ /\[checkpointCreationTime=\s*(.*?)\s*\]\[type=\s*(.*?)\s*\]/msig) { - $chkpt{$2} = $1 if ($chkpt{$2} > $1); + $chkpt{$2} = $1 if ($chkpt{$2} == -1 || $chkpt{$2} > $1); } next if ($chkpt{backing} == -1 && $chkpt{snapshot} == -1);