2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-22 11:10:24 +00:00

Update warning message based on Victor's comments

This commit is contained in:
ertaozh
2019-03-12 21:35:06 -04:00
parent d6b418bfb0
commit a56305ebeb

View File

@@ -2284,7 +2284,7 @@ sub dispatch_request {
xCAT::MsgUtils->trace(0, "D", "xcatd: handle request '$req->{command}->[0]' by plugin '$modname''s preprocess_request");
$reqs = ${ "xCAT_plugin::" . $modname . "::" }{preprocess_request}->($req, $dispatch_cb, \&do_request);
if (not(scalar @$reqs) and not(defined xCAT::TableUtils->get_site_attribute('master'))) {
$dispatch_cb->({ error => ['No site.master set, please check'], errorcode => [1] });
$dispatch_cb->({ warning => ["The 'master' attribute is not set in the site table and may cause unexpected behavior."]});
return;
}
} else { # otherwise, pass it in without hierarchy support