plugin: change name, separator and error message for dir overrides
Rename the "dirs" parameter to "content-dirs". Switch from a "vtype:/dir" format to "vtype=/dir", and remove the misleading error message talking about "absolute" paths. One might expect these to be absolute over the whole system, while in reality they are relative to the mountpoint of the storage. Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
3e7bd7dac3
commit
b539bb46a8
@ -30,8 +30,8 @@ foreach my $type (keys %$vtype_subdirs) {
|
||||
# creates additional tests for overrides
|
||||
foreach my $type (keys %$vtype_subdirs) {
|
||||
my $override = "/${type}_override";
|
||||
my $scfg_with_override = { path => '/some/path', dirs => { $type => $override } };
|
||||
push @$tests, [ $scfg_with_override, $type, "$scfg_with_override->{path}$scfg_with_override->{dirs}->{$type}" ];
|
||||
my $scfg_with_override = { path => '/some/path', 'content-dirs' => { $type => $override } };
|
||||
push @$tests, [ $scfg_with_override, $type, "$scfg_with_override->{path}$scfg_with_override->{'content-dirs'}->{$type}" ];
|
||||
}
|
||||
|
||||
plan tests => scalar @$tests;
|
||||
|
||||
Reference in New Issue
Block a user