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:
wanghuaz 2009-07-14 10:16:13 +00:00
parent 116368143d
commit 5687308766

View File

@ -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/ ) {