-Speed up detection of vcenter attach requirements
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6669 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
62823df2fe
commit
7539f6559e
@ -873,14 +873,15 @@ sub get_hostview {
|
||||
$subargs{filter}={'name' =~ qr/localhost(?:\.|\z)/};
|
||||
$view = $args{conn}->find_entity_view(%subargs);
|
||||
if ($view) { return $view; }
|
||||
return undef; #rest of function should be obsoleted, going to run with that assumption for 2.5 at least
|
||||
$subargs{filter}={'name' =~ qr/.*/};
|
||||
foreach (@{$args{conn}->find_entity_views(%subargs)}) {
|
||||
my $view = $_;
|
||||
if ($_->name =~ /$host(?:\.|\z)/ or $_->name =~ /localhost(?:\.|\z)/ or grep { $view->name =~ /$_(?:\.|\z)/ } @matchvalues) {
|
||||
return $view;
|
||||
last;
|
||||
}
|
||||
}
|
||||
# foreach (@{$args{conn}->find_entity_views(%subargs)}) {
|
||||
# my $view = $_;
|
||||
# if ($_->name =~ /$host(?:\.|\z)/ or $_->name =~ /localhost(?:\.|\z)/ or grep { $view->name =~ /$_(?:\.|\z)/ } @matchvalues) {
|
||||
# return $view;
|
||||
# last;
|
||||
# }
|
||||
# }
|
||||
}
|
||||
sub enable_vmotion {
|
||||
#TODO: vmware 3.x semantics too? this is 4.0...
|
||||
|
Loading…
x
Reference in New Issue
Block a user