From f0c90b3a51f056388cf0c059e2941045a64cd333 Mon Sep 17 00:00:00 2001 From: Lei Ai Date: Mon, 5 Aug 2013 15:11:45 +0800 Subject: [PATCH] initialize global variables to avoid Cannot re-provision the node which has been removed --- xCAT-server/lib/xcat/plugins/profilednodes.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/profilednodes.pm b/xCAT-server/lib/xcat/plugins/profilednodes.pm index 961f05c11..8fff76131 100644 --- a/xCAT-server/lib/xcat/plugins/profilednodes.pm +++ b/xCAT-server/lib/xcat/plugins/profilednodes.pm @@ -385,6 +385,7 @@ Usage: $allmacs{$macstr} = 0; } } + %allmacsupper = (); foreach (keys %allmacs){ $allmacsupper{uc($_)} = 0; } @@ -1107,6 +1108,7 @@ Usage: $allmacs{$macstr} = 0; } } + %allmacsupper = (); foreach (keys %allmacs){ $allmacsupper{uc($_)} = 0; } @@ -1508,6 +1510,7 @@ sub findme{ $allmacs{$macstr} = 0; } } + %allmacsupper = (); foreach (keys %allmacs){ $allmacsupper{uc($_)} = 0; }