From c655395d6067b43de5aa34a323e86c7e1dcf712a Mon Sep 17 00:00:00 2001 From: bybai Date: Thu, 22 Feb 2018 02:16:28 -0500 Subject: [PATCH] when no domain defined, should print error --- xCAT-server/lib/xcat/plugins/dhcp.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index c824641be..449cbb561 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -2440,9 +2440,10 @@ sub addnet } else { $callback->( { - warning => [ + error => [ "No $net specific entry for domain, and no domain defined in site table." - ] + ], + errorcode => [1] }); }