From 7874e5fd061d2b9b2de723b900a2a5d0f65eca4c Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 17 Feb 2009 20:40:37 +0000 Subject: [PATCH] -Guard against makehosts matching blank lines when or is messed up git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2761 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/hosts.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/xcat/plugins/hosts.pm b/xCAT-server/lib/xcat/plugins/hosts.pm index 870e2ddf6..522aff783 100644 --- a/xCAT-server/lib/xcat/plugins/hosts.pm +++ b/xCAT-server/lib/xcat/plugins/hosts.pm @@ -22,6 +22,7 @@ sub handled_commands { sub addnode { my $node = shift; my $ip = shift; + unless ($node and $ip) { return; } #bail if requested to do something that could zap /etc/hosts badly my $othernames = shift; my $idx=0; my $foundone=0;