set postscript var MASTER to SITEMASTER if no xcatmaster, no servicenode, and no getFacingIP (i.e. node not on local subnet)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5112 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
8cc3d03963
commit
7de70f40be
@ -140,7 +140,11 @@ sub makescript {
|
||||
if ($et and defined($et->{'xcatmaster'})) {
|
||||
$value = $et->{'xcatmaster'};
|
||||
} else {
|
||||
my $sitemaster_value = $value;
|
||||
$value=xCAT::Utils->getFacingIP($node);
|
||||
if ($value eq "0") {
|
||||
$value = $sitemaster_value;
|
||||
}
|
||||
}
|
||||
push @scriptd, "$attribute=".$value."\n";
|
||||
push @scriptd, "export $attribute\n";
|
||||
|
Loading…
Reference in New Issue
Block a user