Fix macro name for zfs zpool discovery
This commit is contained in:
parent
b6c3464cef
commit
dec361914d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user