$clone has no use and what the interface constraints on $conf vs.
$self->{conf} really are is nowhere documented, so just use $conf for
now, to at least use only one thing (and avoid the highly confusing
case where the signature suggests that $conf is used, so when one
would pass a to $self->{conf} unrelated $conf it would not work)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
sub post_clone_hook {
my ($self, $conf) = @_;
- my $clone = 1;
-
- my $code = sub {
- $self->{plugin}->post_clone_hook($self->{conf}, $clone);
- };
- $self->protected_call($code);
-
+ $self->protected_call(sub {
+ $self->{plugin}->post_clone_hook($conf);
+ });
}
sub post_create_hook {