-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:
parent
7539f6559e
commit
84fc75b496
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user