if -d specified, don't write mac to database
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3769 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
116368143d
commit
5687308766
@ -488,7 +488,9 @@ sub getmacs {
|
||||
#########################################
|
||||
# Write MAC address to database
|
||||
#########################################
|
||||
writemac( $node, $value );
|
||||
if ( !exists( $opt->{d} )) {
|
||||
writemac( $node, $value );
|
||||
}
|
||||
|
||||
foreach ( @$value ) {
|
||||
if ( /^#\s?Type/ ) {
|
||||
|
Loading…
Reference in New Issue
Block a user