[xen-tools-dev] [PATCH] Get extension from command line and not from environment
Stéphane Jourdois
sjourdois at gmail.com
Sun Jul 11 15:39:05 CEST 2010
This helps t/xt-create-xen-config to pass.
---
bin/xt-create-xen-config | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/xt-create-xen-config b/bin/xt-create-xen-config
index f94823f..cbc665f 100755
--- a/bin/xt-create-xen-config
+++ b/bin/xt-create-xen-config
@@ -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.
--
1.5.6.5
More information about the xen-tools-dev
mailing list