mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	add already defined check
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5404 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -90,8 +90,9 @@ sub submit_request {
 | 
			
		||||
  unless ($cafile) { $cafile  = xCAT::Utils->getHomeDir()."/.xcat/ca.pem"; }
 | 
			
		||||
  $xCAT::Client::EXITCODE = 0;    # clear out exit code before invoking the plugin
 | 
			
		||||
#  add current userid to the request
 | 
			
		||||
$request->{username}->[0] = getpwuid($>);
 | 
			
		||||
 | 
			
		||||
if (!(defined($request->{username}))) {
 | 
			
		||||
  $request->{username}->[0] = getpwuid($>);
 | 
			
		||||
}
 | 
			
		||||
# If XCATBYPASS is set, invoke the plugin process_request method directly
 | 
			
		||||
# without going through the socket connection to the xcatd daemon
 | 
			
		||||
  if ($ENV{XCATBYPASS}) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user