line |
true |
false |
branch |
60
|
6 |
0 |
unless $$self{'vtype'} = $self->_get_virt_type('fatal', $fatal, 'debug', $debug)
|
88
|
0 |
0 |
unless $$self{'ip'} = $self->get_ips($p{'ip'})
|
91
|
0 |
0 |
if defined $p{$_}
|
94
|
0 |
0 |
if ($p{'nameservers'})
|
119
|
0 |
0 |
if defined $p{$_}
|
136
|
0 |
0 |
if defined $p{$_}
|
154
|
0 |
0 |
if defined $p{$_}
|
172
|
0 |
0 |
if defined $p{$_}
|
191
|
0 |
0 |
if defined $p{$_}
|
210
|
0 |
0 |
if defined $p{$_}
|
233
|
0 |
0 |
if defined $p{$_}
|
236
|
0 |
0 |
defined $p{$_} ? :
|
258
|
0 |
0 |
if defined $p{$_}
|
261
|
0 |
0 |
if $p{'ip'}
|
262
|
0 |
0 |
if $p{'nameservers'}
|
305
|
0 |
0 |
if defined $p{$_}
|
309
|
0 |
0 |
unless $$self{'ip'} = $self->get_ips($p{'ip'})
|
310
|
0 |
0 |
if $p{'nameservers'}
|
331
|
0 |
0 |
if defined $p{$_}
|
339
|
0 |
0 |
unless ref $self
|
340
|
0 |
0 |
if $$self{'vtype'}->can($sub)
|
370
|
0 |
0 |
if defined $p{$_}
|
389
|
0 |
0 |
if defined $p{$_}
|
405
|
0 |
0 |
ref $ip ? :
|
409
|
0 |
0 |
if (-x $arpsend)
|
424
|
0 |
0 |
unless $$self{'connection_test'}
|
429
|
0 |
0 |
unless my $r = $util->syscmd("$ssh $new_node /bin/uname -a", 'debug', $debug, 'fatal', 0)
|
454
|
0 |
0 |
if defined $p{$_}
|
466
|
0 |
0 |
if ($$self{'vtype'}->can('get_fs_root'))
|
476
|
0 |
0 |
if ($$self{'vtype'}->can('get_ve_home'))
|
492
|
0 |
0 |
if $ip
|
496
|
0 |
0 |
if ($ips == 0)
|
502
|
0 |
0 |
$ips > 1 ? :
|
517
|
0 |
0 |
if defined $p{$_}
|
536
|
0 |
0 |
if $dir
|
539
|
0 |
0 |
-d '/vz/template' ? :
|
|
0 |
0 |
-d '/vz/template/cache' ? :
|
|
0 |
0 |
-d '/templates' ? :
|
544
|
0 |
0 |
if $dir
|
566
|
0 |
0 |
unless ($url)
|
567
|
0 |
0 |
unless my $template_dir = $self->get_template_dir('v_type', $v_type)
|
579
|
0 |
0 |
if scalar @templates
|
586
|
0 |
0 |
unless $response->is_success
|
594
|
0 |
0 |
unless my $file = shift @fields
|
595
|
0 |
0 |
unless $file =~ /tar.gz/
|
613
|
0 |
0 |
unless my($Y, $M, $D, $h, $m, $s) = $time =~ /^(\d{4})-(\w{3})-(\d{2})\s+(\d{2})?:?(\d{2})?:?(\d{2})?/
|
644
|
0 |
0 |
if defined $p{$_}
|
669
|
0 |
0 |
if $p{'name'}
|
671
|
0 |
0 |
if $p{'nameservers'}
|
672
|
0 |
0 |
unless $$self{'nameservers'}
|
679
|
0 |
0 |
if ($$self{'vtype'}->can('set_nameservers'))
|
689
|
0 |
0 |
if $searchdomain
|
690
|
0 |
0 |
if (-f $resolv)
|
694
|
0 |
0 |
if $line =~ /^nameserver\s/i
|
695
|
0 |
0 |
if $searchdomain and $line =~ /^searchdomain\s/i
|
723
|
0 |
0 |
if defined $p{$_}
|
744
|
0 |
0 |
if defined $p{$_}
|
774
|
0 |
0 |
if -e "$file_path"
|
775
|
0 |
0 |
if -e "$file_path.pub"
|
793
|
0 |
0 |
if defined $p{$_}
|
805
|
0 |
0 |
if $r != 3
|
809
|
0 |
0 |
if @octets != 4
|
813
|
0 |
0 |
unless /^\d{1,3}$/ and $_ >= 0 and $_ <= 255
|
817
|
0 |
0 |
if $octets[0] == 0
|
820
|
0 |
0 |
if 0 + $octets[0] + $octets[1] + $octets[2] + $octets[3] == 0
|
824
|
0 |
0 |
if grep(($_ eq '255'), @octets) == 4
|
838
|
7 |
0 |
if lc $Provision::Unix::VirtualOS::OSNAME eq 'linux'
|
840
|
0 |
0 |
if (lc $Provision::Unix::VirtualOS::OSNAME eq 'freebsd')
|
842
|
0 |
0 |
if ($ezjail)
|
865
|
7 |
0 |
if (scalar @{$$prov{'errors'};} > $err_before)
|
867
|
7 |
0 |
if scalar @{$$prov{'errors'};} > $err_before
|
873
|
0 |
7 |
if ($xm and not $vzctl)
|
877
|
0 |
7 |
if ($vzctl and not $xm)
|
882
|
0 |
0 |
if (-d '/vz/template') { }
|
883
|
0 |
0 |
if (-d '/vz/template/cache') { }
|