fix: correct package name and API version for PVE 8.4.x

Package must match filename (TrueNAS.pm → PVE::Storage::Custom::TrueNAS)
so PVE's module loader finds the class when checking ISA PVE::Storage::Plugin.

api() returns 11 to match APIVER in PVE::Storage on PVE 8.4.x.
Returning 10 loaded successfully but triggered a deprecation warning.

Verified: pvedaemon loads plugin cleanly with no errors or warnings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Kevin Adams 2026-05-23 20:36:13 -04:00
parent 432be1ba5c
commit f6ca0c9ef5
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
package PVE::Storage::Custom::TrueNASPlugin;
package PVE::Storage::Custom::TrueNAS;
# TrueNAS Custom Storage Plugin for Proxmox VE
#
@ -28,7 +28,7 @@ my $state = {};
# ── Plugin identity ───────────────────────────────────────────────────────────
sub api { return 10; }
sub api { return 11; }
sub type { return 'truenas'; }
sub plugindata {