Fix network definition error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3393 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
e874a281d4
commit
0a65c9fb49
@ -921,11 +921,12 @@ sub defmk
|
||||
}
|
||||
my %nethash = xCAT::DBobjUtils->getobjdefs(\%objhash);
|
||||
foreach my $o (keys %nethash) {
|
||||
if ( ($nethash{$o}{net} eq $::FINALATTRS{$o}{net}) && ($nethash{$o}{mask} eq $::FINALATTRS{$o}{mask}) ) {
|
||||
if ( ($nethash{$o}{net} eq $::FINALATTRS{$obj}{net}) && ($nethash{$o}{mask} eq $::FINALATTRS{$obj}{mask}) ) {
|
||||
my $rsp;
|
||||
$rsp->{data}->[0] = "A network definition called \'$o\' already exists that contains the same net and mask values. Cannot create a definition for \'$obj\'.\n";
|
||||
xCAT::MsgUtils->message("E", $rsp, $::callback);
|
||||
$error = 1;
|
||||
delete $::FINALATTRS{$obj};
|
||||
next OBJ;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user