From: Thomas Lamprecht Date: Mon, 2 Jul 2018 13:54:48 +0000 (+0200) Subject: api add: remove now uneeded $cred_file variable X-Git-Url: https://git.proxmox.com/?p=pve-storage.git;a=commitdiff_plain;h=6d3b36e1b0dc0a8f0863a8de4dd54069ddc418d7 api add: remove now uneeded $cred_file variable was used for cleanup, which is now handled by on_delete_hook Signed-off-by: Thomas Lamprecht --- diff --git a/PVE/API2/Storage/Config.pm b/PVE/API2/Storage/Config.pm index 434b1f3..b16054b 100755 --- a/PVE/API2/Storage/Config.pm +++ b/PVE/API2/Storage/Config.pm @@ -163,8 +163,6 @@ __PACKAGE__->register_method ({ $plugin->on_add_hook($storeid, $opts, password => $password); - my $cred_file = undef; - eval { # try to activate if enabled on local node, # we only do this to detect errors/problems sooner @@ -175,7 +173,6 @@ __PACKAGE__->register_method ({ if(my $err = $@) { eval { $plugin->on_delete_hook($storeid, $opts) }; warn "$@\n" if $@; - unlink $cred_file if defined($cred_file); die $err; }