* Only add a VDE NIC if there is a webserver.

svn path=/nixos/trunk/; revision=25986
This commit is contained in:
Eelco Dolstra
2011-02-16 10:07:28 +00:00
parent 49213aa80a
commit 32aa967ee1
2 changed files with 3 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ sub new {
my $name = $args->{name};
if (!$name) {
$startCommand =~ /run-(.*)-vm$/;
$startCommand =~ /run-(.*)-vm$/ if defined $startCommand;
$name = $1 || "machine";
}