-Speed up cluster view retrieval for cases with multiple clusters

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6670 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-07-07 19:32:04 +00:00
parent 7539f6559e
commit 84fc75b496

View File

@ -830,12 +830,15 @@ sub get_clusterview {
if ($args{properties}) {
$subargs{properties}=$args{properties};
}
foreach (@{$args{conn}->find_entity_views(%subargs)}) {
if ($_->name eq "$clustname") {
return $_;
last;
}
}
$subargs{filter}={name=>$clustname};
my $view = $args{conn}->find_entity_view(%subargs);
return $view;
#foreach (@{$args{conn}->find_entity_views(%subargs)}) {
# if ($_->name eq "$clustname") {
# return $_;
# last;
# }
#}
}
sub get_hostview {