From b60d7cd348cb8452a63d79762ea94d0ac82fe9b7 Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 7 Jun 2006 09:19:52 +0000 Subject: [PATCH] 2006-06-07 09:19:52 by steve BUGFIX: Count is too high. --- xen-create-image | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xen-create-image b/xen-create-image index b5cd2c8..6a940c3 100755 --- a/xen-create-image +++ b/xen-create-image @@ -461,7 +461,7 @@ Install an X11 server, using VNC and XDM -- http://www.steve.org.uk/ - $Id: xen-create-image,v 1.128 2006-06-07 09:09:30 steve Exp $ + $Id: xen-create-image,v 1.129 2006-06-07 09:19:52 steve Exp $ =cut @@ -1060,7 +1060,7 @@ sub parseCommandLineArguments if ( $VERSION ) { - my $REVISION = '$Revision: 1.128 $'; + my $REVISION = '$Revision: 1.129 $'; if ( $REVISION =~ /1.([0-9.]+) / ) { @@ -1758,7 +1758,7 @@ sub runHooks # these are handled specially since we use arrays. # # Remove the value we set above. - $ENV{'ip'} = undef; + delete $ENV{'ip'}; # # Setup a seperate ip$count value for each IP address. @@ -1771,7 +1771,7 @@ sub runHooks $ENV{'ip' . $count } = $i; $count += 1; } - $ENV{'ip_count'} = $count; + $ENV{'ip_count'} = ($count - 1); #