fix: only declare new properties in TrueNASMultipath::properties()
PVE::SectionConfig registers properties globally across all plugin types. Re-declaring the inherited TrueNAS.pm properties (truenas_host, truenas_pool, etc.) caused a "duplicate property" error at pvedaemon startup when both plugins are loaded. TrueNASMultipath::properties() now returns only the new truenas_portals property; all inherited properties remain registered by TrueNAS.pm. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
15d84637c9
commit
db730e39f5
|
|
@ -28,15 +28,18 @@ sub plugindata {
|
|||
|
||||
# ── Config properties (extends parent) ───────────────────────────────────────
|
||||
|
||||
# Only declare NEW properties here. Inherited TrueNAS.pm properties (truenas_host,
|
||||
# truenas_pool, etc.) are already registered globally by TrueNAS.pm — re-declaring
|
||||
# them would cause a "duplicate property" error in PVE::SectionConfig.
|
||||
sub properties {
|
||||
my $props = PVE::Storage::Custom::TrueNAS::properties();
|
||||
$props->{truenas_portals} = {
|
||||
description => "Comma-separated iSCSI portal IP addresses for multipath "
|
||||
. "(e.g. '172.31.69.91,192.168.69.91'). Each portal is logged "
|
||||
. "into separately; dm-multipath aggregates the sessions.",
|
||||
type => 'string',
|
||||
return {
|
||||
truenas_portals => {
|
||||
description => "Comma-separated iSCSI portal IP addresses for multipath "
|
||||
. "(e.g. '172.31.69.91,192.168.69.91'). Each portal is logged "
|
||||
. "into separately; dm-multipath aggregates the sessions.",
|
||||
type => 'string',
|
||||
},
|
||||
};
|
||||
return $props;
|
||||
}
|
||||
|
||||
sub options {
|
||||
|
|
|
|||
Loading…
Reference in New Issue