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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user