add the long hostname into knownhosts file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11570 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
58986c772c
commit
c9b4a6c15d
@ -252,8 +252,18 @@ sub add_known_host
|
||||
|
||||
if (defined $hostname)
|
||||
{
|
||||
my $sitedomain;
|
||||
my @domain = xCAT::Utils->get_site_attribute("domain");
|
||||
if ($domain[0])
|
||||
{
|
||||
$sitedomain = $domain[0];
|
||||
}
|
||||
$line = "\"";
|
||||
$line .= "$hostname,";
|
||||
if ($sitedomain)
|
||||
{
|
||||
$line .= "$hostname.$sitedomain,";
|
||||
}
|
||||
$line .= "$ip_address";
|
||||
$line .= " ";
|
||||
$line .= $output[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user