mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	Revert "Fix issue that site.master is not set"
This commit is contained in:
		| @@ -555,10 +555,6 @@ sub get_ServiceNode | ||||
|                 { | ||||
|                     push @{ $snhash{$master} }, $node; | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     xCAT::MsgUtils->message('SW', "Unknown master for node: $node, neither noderes.servicenode nor site.master is set\n"); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|  | ||||
|   | ||||
| @@ -2286,10 +2286,6 @@ sub dispatch_request { | ||||
|         $SIG{CHLD} = 'DEFAULT'; | ||||
|         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->({ 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 | ||||
|         $reqs = [$req]; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user