2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-12 00:00:12 +00:00

Finish fix from previous commit

The change to remote behavior was not fully compensated
for in previous commit.  Go farther and ensure that the
classic syntax is executed exactly is it was.
This commit is contained in:
jjohnson2
2015-04-29 15:51:10 -04:00
parent ae5715849f
commit b0c839856d

View File

@ -2557,9 +2557,9 @@ sub addnic
{ #add a section if not there
#$restartdhcp=1;
#print "Adding NIC $nic\n";
if ($nic =~ /!remote!/) {
#push @$conf, "#shared-network $nic {\n";
#push @$conf, "#\} # $nic nic_end\n";
if ($nic eq '!remote!') {
push @$conf, "#shared-network $nic {\n";
push @$conf, "#\} # $nic nic_end\n";
} else {
push @$conf, "shared-network $nic {\n";
push @$conf, "\} # $nic nic_end\n";