Commit 5d7aff71 authored by Local User's avatar Local User Committed by Dietmar Maurer

Pass what storage ID is being used to vzdump hook scripts

Signed-off-by: 's avatarMark Casey <markc@unifiedgroup.com>
parent d81a44e8
......@@ -646,7 +646,7 @@ sub run_hook_script {
local %ENV;
foreach my $ek (qw(vmtype dumpdir hostname tarfile logfile)) {
foreach my $ek (qw(vmtype dumpdir hostname tarfile logfile storeid)) {
$ENV{uc($ek)} = $task->{$ek} if $task->{$ek};
}
......@@ -764,7 +764,7 @@ sub exec_backup_task {
die "unable to create log file '$tmplog'";
$task->{dumpdir} = $opts->{dumpdir};
$task->{storeid} = $opts->{storage};
$task->{tmplog} = $tmplog;
unlink $logfile;
......
......@@ -29,6 +29,8 @@ if ($phase eq 'job-start' ||
my $dumpdir = $ENV{DUMPDIR};
my $storeid = $ENV{STOREID};
my $hostname = $ENV{HOSTNAME};
# tarfile is only available in phase 'backup-end'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment