add new content type 'snippets'
will be used to contain files which can be executed as hookscripts or contain custom cloud-init configs Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
931c35cfa0
commit
7c7ae12f43
@ -428,6 +428,8 @@ sub parse_volname {
|
||||
return ('backup', $fn, $2);
|
||||
}
|
||||
return ('backup', $fn);
|
||||
} elsif ($volname =~ m!^snippets/([^/]+)$!) {
|
||||
return ('snippets', $1);
|
||||
}
|
||||
|
||||
die "unable to parse directory volume name '$volname'\n";
|
||||
@ -439,6 +441,7 @@ my $vtype_subdirs = {
|
||||
iso => 'template/iso',
|
||||
vztmpl => 'template/cache',
|
||||
backup => 'dump',
|
||||
snippets => 'snippets',
|
||||
};
|
||||
|
||||
sub get_subdir {
|
||||
|
||||
Reference in New Issue
Block a user