]> xenbits.xensource.com Git - people/dariof/xen-tools.git/commitdiff
Only the key for %ENV, but not for %CONFIG, needs to be modified
authorAxel Beckert <abe@deuxchevaux.org>
Wed, 13 Mar 2013 23:10:18 +0000 (00:10 +0100)
committerAxel Beckert <abe@deuxchevaux.org>
Wed, 13 Mar 2013 23:10:18 +0000 (00:10 +0100)
bin/xen-create-image

index 6417a5b1253161c8a3783a360d3833b98ced26cd..b1ac0fa429e119a86c82fdf572a3b596179027c7 100755 (executable)
@@ -3529,10 +3529,11 @@ sub exportEnvironment
 
     foreach my $key ( keys %CONFIG )
     {
-        $key =~ s/-/_/g;
         if ( defined( $CONFIG{ $key } ) )
         {
-            $ENV{ $key } = $CONFIG{ $key };
+            my $envkey = $key;
+            $envkey =~ s/-/_/g;
+            $ENV{ $envkey } = $CONFIG{ $key };
         }
     }
 }