1
0
mirror of synced 2026-01-14 07:29:42 +00:00

xen-delete-image no more passes $CONFIG{hostname} as array to logprint_with_config

The deletion of failed attempts was logged to files named like
ARRAY(0xa9dd98).log because the hostname was passed twice, i.e. as
arrayref (which didn't hurt otherwise).
This commit is contained in:
Axel Beckert 2013-01-25 15:22:42 +01:00
parent 0709308c1f
commit f2d30eaa63

View File

@ -252,7 +252,9 @@ while ( my $name = shift )
my $hosts = $CONFIG{ 'hostname' };
foreach my $name (@$hosts)
{
if ( $CONFIG{ 'no_xen_ok' } or !xenRunning($name, \%CONFIG) )
my %PER_HOST_CONFIG = %CONFIG;
$PER_HOST_CONFIG{ 'hostname' } = $name;
if ( $CONFIG{ 'no_xen_ok' } or !xenRunning($name, \%PER_HOST_CONFIG) )
{
deleteXenImage($name);
}