Fix macro name for zfs zpool discovery

This commit is contained in:
Daniel Berteaud 2018-05-28 17:51:31 +02:00
parent b6c3464cef
commit dec361914d

View File

@ -12,7 +12,7 @@ my $zpool = which('zpool');
if ($zpool){
foreach (qx($zpool list -H -o name)){
chomp;
push @{$json->{data}}, { ZPOOL => $_ };
push @{$json->{data}}, { '{#ZPOOL}' => $_ };
}
}
print to_json($json);