From 7a7c11650ceeeb9e969aef6b5850eb106f9d5876 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 9 Jul 2010 17:02:25 +0000 Subject: [PATCH] -Correct mistake in previous optimization git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6694 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 3bd86d81e..151ed77a3 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -865,15 +865,15 @@ sub get_hostview { push @matchvalues,$_; } my $view; - $subargs{filter}={'name' =~ qr/$host(?:\.|\z)/}; + $subargs{filter}={'name' => qr/$host(?:\.|\z)/}; $view = $args{conn}->find_entity_view(%subargs); if ($view) { return $view; } foreach (@matchvalues) { - $subargs{filter}={'name' =~ qr/$_(?:\.|\z)/}; + $subargs{filter}={'name' => qr/$_(?:\.|\z)/}; $view = $args{conn}->find_entity_view(%subargs); if ($view) { return $view; } } - $subargs{filter}={'name' =~ qr/localhost(?:\.|\z)/}; + $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