fixed state reset

This commit is contained in:
Christoph Klaffl 2020-01-16 01:26:44 +01:00
parent 30fb5aabeb
commit 77fd555a84
No known key found for this signature in database
GPG Key ID: 8FC1D76EED4970D2
1 changed files with 2 additions and 0 deletions

View File

@ -1527,6 +1527,7 @@ sub getsnapsfallback() {
}
my $getsnapcmd = "$rhost $mysudocmd $zfscmd get -Hpd 1 type,guid,creation $fsescaped |";
warn "snapshot listing failed, trying fallback command"
if ($debug) { print "DEBUG: FALLBACK, getting list of snapshots on $fs using $getsnapcmd...\n"; }
open FH, $getsnapcmd;
my @rawsnaps = <FH>;
@ -1586,6 +1587,7 @@ sub getsnapsfallback() {
}
$snaps{$type}{$snap}{'creation'}=$creationsuffix;
$state = -1;
}
$state++;