look up hosts table before name resolution in rspconfig command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4887 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6b2f238183
commit
ad45f701f8
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user