From 5687308766b276271e0cb6eb012b1ed679e2da4e Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Tue, 14 Jul 2009 10:16:13 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/PPCmac.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/PPCmac.pm b/perl-xCAT/xCAT/PPCmac.pm index aeefca889..1ad1402aa 100644 --- a/perl-xCAT/xCAT/PPCmac.pm +++ b/perl-xCAT/xCAT/PPCmac.pm @@ -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/ ) {