summaryrefslogtreecommitdiff
path: root/source4/selftest/target/Kvm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/selftest/target/Kvm.pm')
-rw-r--r--source4/selftest/target/Kvm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/selftest/target/Kvm.pm b/source4/selftest/target/Kvm.pm
index 1037f23c59..7799cb7ec0 100644
--- a/source4/selftest/target/Kvm.pm
+++ b/source4/selftest/target/Kvm.pm
@@ -99,7 +99,7 @@ sub start($$$)
my $pidfile = "$path/kvm.pid";
- my $opts = ($ENV{KVM_OPTIONS} or "-nographic");
+ my $opts = (defined($ENV{KVM_OPTIONS})?$ENV{KVM_OPTIONS}:"-nographic");
my ($ifup_script, $dhcpd_pidfile, $ip_address) = $self->write_kvm_ifup($path, "192.168.9");