-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
This commit is contained in:
jbjohnso 2009-02-17 20:40:37 +00:00
parent ce303a7f3d
commit 7874e5fd06

View File

@ -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;