diff --git a/perl-xCAT/xCAT/PPCfsp.pm b/perl-xCAT/xCAT/PPCfsp.pm index 5161e107d..447bd33e5 100644 --- a/perl-xCAT/xCAT/PPCfsp.pm +++ b/perl-xCAT/xCAT/PPCfsp.pm @@ -130,6 +130,13 @@ sub connect { ################################## # Set options ################################## + my $hosttab = xCAT::Table->new( 'hosts' ); + if ( $hosttab) { + my $hostshash = $hosttab->getNodeAttribs( $server, [qw(ip)]); + if ( $hostshash ) { + $server = $hostshash->{ip}; + } + } # my $serverip = inet_ntoa(inet_aton($server)); my $url = "https://$server/cgi-bin/cgi?form=2"; $ua->cookie_jar( $cookie );