diff --git a/xCAT-server/lib/perl/xCAT/xcatd.pm b/xCAT-server/lib/perl/xCAT/xcatd.pm index 33f6412ca..67891d54e 100644 --- a/xCAT-server/lib/perl/xCAT/xcatd.pm +++ b/xCAT-server/lib/perl/xCAT/xcatd.pm @@ -72,7 +72,7 @@ sub validate { # check to see if peerhost is trusted foreach $rule (@$policies) { - if (($rule->{name} and (($rule->{name} eq $peerhost) || ($rule->{name} eq $peerhostorg))) && ($rule->{rule}=~ /trusted/i)) { + if (($rule->{name} and $rule->{name} eq $peername) && ($rule->{rule}=~ /trusted/i)) { $peerstatus="Trusted"; last; }