only list snapshots in $getsnapcmd

This commit is contained in:
Jim Salter 2017-05-03 15:04:32 -04:00 committed by GitHub
parent 5fa92fa8cb
commit e8906de2f0
1 changed files with 1 additions and 1 deletions

View File

@ -782,7 +782,7 @@ sub getsnaps() {
if ($rhost ne '') { $rhost = "$sshcmd $rhost"; }
my $getsnapcmd = "$rhost $mysudocmd $zfscmd get -Hpd 1 creation $fs |";
my $getsnapcmd = "$rhost $mysudocmd $zfscmd get -Hpd 1 -t snapshot creation $fs |";
if ($debug) { print "DEBUG: getting list of snapshots on $fs using $getsnapcmd...\n"; }
open FH, $getsnapcmd;
my @rawsnaps = <FH>;