| line |
true |
false |
branch |
|
43
|
0 |
2 |
ref $virt_settings ? : |
|
48
|
0 |
2 |
unless ($opts) |
|
59
|
2 |
0 |
if (exists $hypervisor->{'kvm'}) { } |
|
|
0 |
0 |
elsif (exists $hypervisor->{'xen'}) { } |
|
80
|
2 |
0 |
if (not exists $_->{'template'} and $_->{'size'} and $_->{'type'} eq 'file') { } |
|
|
0 |
0 |
elsif ($_->{'template'} and $_->{'type'} eq 'file') { } |
|
82
|
2 |
0 |
if (not is_file($_->{'file'})) { } |
|
86
|
0 |
2 |
if ($? != 0) |
|
102
|
0 |
0 |
if ($? != 0) |
|
123
|
0 |
2 |
if ($? != 0) |
|
134
|
0 |
2 |
unless (exists $opts->{'name'}) |
|
138
|
0 |
2 |
unless (exists $opts->{'storage'}) |
|
142
|
2 |
0 |
unless (exists $opts->{'type'}) |
|
144
|
0 |
2 |
if (exists $opts->{'os'} and exists $opts->{'os'}{'kernel'} and not exists $hyper->{'kvm'}) { } |
|
156
|
2 |
0 |
unless ($opts->{'memory'}) |
|
160
|
2 |
0 |
unless ($opts->{'cpus'}) |
|
164
|
2 |
0 |
unless (exists $opts->{'clock'}) |
|
168
|
2 |
0 |
unless (exists $opts->{'arch'}) |
|
169
|
2 |
0 |
if (exists $hyper->{'x86_64'}) { } |
|
177
|
2 |
0 |
unless (exists $opts->{'boot'}) |
|
181
|
2 |
0 |
unless (exists $opts->{'emulator'}) |
|
184
|
0 |
2 |
if (operating_system_is("Debian") and exists $hyper->{'xen'}) |
|
193
|
0 |
2 |
if (exists $hyper->{'loader'} and not exists $opts->{'loader'}) |
|
197
|
2 |
0 |
unless (exists $opts->{'on_poweroff'}) |
|
201
|
2 |
0 |
unless (exists $opts->{'on_reboot'}) |
|
205
|
2 |
0 |
unless (exists $opts->{'on_crash'}) |
|
209
|
0 |
2 |
if (exists $hyper->{'xen'} and $opts->{'type'} eq "pvm") |
|
211
|
0 |
0 |
unless (exists $opts->{'os'}{'type'}) |
|
215
|
0 |
0 |
unless (exists $opts->{'os'}{'kernel'}) |
|
218
|
0 |
0 |
if (is_redhat()) { } |
|
228
|
0 |
0 |
unless (exists $opts->{'os'}{'initrd'}) |
|
231
|
0 |
0 |
if (is_redhat()) { } |
|
241
|
0 |
0 |
unless (exists $opts->{'os'}{'cmdline'}) |
|
242
|
0 |
0 |
if $_->{'is_root'} |
|
262
|
2 |
0 |
unless (exists $store->{'type'}) |
|
266
|
1 |
1 |
unless (exists $store->{'driver_type'}) |
|
270
|
2 |
0 |
if (not exists $store->{'size'} and $store->{'type'} eq "file") |
|
272
|
0 |
2 |
if ($store->{'file'} =~ /swap/u) { } |
|
281
|
0 |
2 |
if (exists $store->{'file'} and $store->{'file'} =~ /\.iso$/u and not exists $store->{'device'}) |
|
288
|
2 |
0 |
unless (exists $store->{'device'}) |
|
292
|
0 |
2 |
if (not exists $store->{'dev'} and $store->{'device'} eq "cdrom") |
|
296
|
0 |
2 |
unless (exists $store->{'dev'}) |
|
298
|
0 |
0 |
if (exists $hyper->{'kvm'}) { } |
|
307
|
2 |
0 |
unless (exists $store->{'bus'}) |
|
309
|
2 |
0 |
if (exists $hyper->{'kvm'} and $store->{'device'} eq 'disk') { } |
|
318
|
2 |
0 |
if (exists $hyper->{'kvm'}) |
|
320
|
2 |
0 |
if ($store->{'bus'} eq 'virtio' and not exists $store->{'address'}) { } |
|
|
0 |
0 |
elsif ($store->{'bus'} eq 'ide' and not exists $store->{'address'}) { } |
|
340
|
0 |
2 |
if ($store->{'device'} eq "cdrom") |
|
344
|
0 |
2 |
if (is_redhat()) |
|
346
|
0 |
0 |
unless (exists $store->{'aio'}) |
|
361
|
2 |
0 |
unless (exists $opts->{'network'}) |
|
374
|
0 |
2 |
unless (exists $netdev->{'type'}) |
|
380
|
0 |
2 |
unless (exists $netdev->{'bridge'}) |
|
386
|
2 |
0 |
if (exists $hyper->{'kvm'}) |
|
388
|
2 |
0 |
unless (exists $netdev->{'model'}) |
|
394
|
2 |
0 |
unless (exists $netdev->{'address'}) |