Ensure we always return a value for scan action status errors in check_zfs

tags/zabbix-agent-addons-0.2.33-1
Daniel Berteaud 7 years ago
parent 5db4a536d5
commit e72efa4415
  1. 2
      zabbix_scripts/check_zfs

@ -96,6 +96,8 @@ sub get_zpool_errors {
}
$i++;
}
# Ensure evey item returns something
$errors->{$_} ||= '' foreach (qw(scan action status errors));
return $errors;
}

Loading…
Cancel
Save