1
0
mirror of synced 2026-01-21 01:48:09 +00:00

Get extension from command line and not from environment

This helps t/xt-create-xen-config to pass.
This commit is contained in:
Stéphane Jourdois 2010-07-11 15:19:07 +02:00 committed by Axel Beckert
parent 82fae6a5bc
commit 05def34ca4

View File

@ -151,6 +151,7 @@ my @PARTITIONS = undef;
# Default options
#
$CONFIG{ 'template' } = '/etc/xen-tools/xm.tmpl';
$CONFIG{ 'extension' } = '.cfg';
#
@ -334,12 +335,11 @@ sub importPartitionsFromEnvironment
sub createXenConfig
{
#
# The output file we're going to process.
#
my $file =
$CONFIG{ 'output' } . '/' . $ENV{ 'hostname' } . $ENV{ 'extension' };
$CONFIG{ 'output' } . '/' . $ENV{ 'hostname' } . $CONFIG{ 'extension' };
#
# The template we're going to read from.