mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	-Add currently unused method to find a cluster in a vCenter by name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4271 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -417,6 +417,23 @@ sub connecthost_callback { | ||||
|     } | ||||
| } | ||||
|  | ||||
| sub get_clusterview { | ||||
|     my %args = @_; | ||||
|     my $clustname = $args{clustname}; | ||||
|     my %subargs = ( | ||||
|         view_type=>'ClusterComputeResource', | ||||
|     ); | ||||
|     if ($args{properties}) { | ||||
|         $subargs{properties}=$args{properties}; | ||||
|     } | ||||
|     foreach (@{$args{conn}->find_entity_views(%subargs)}) { | ||||
|        if ($_->name =~ /$clustname/) { | ||||
|            return $_; | ||||
|            last; | ||||
|        } | ||||
|     } | ||||
| } | ||||
|  | ||||
| sub get_hostview { | ||||
|     my %args = @_; | ||||
|     my $host = $args{hypname}; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user