mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	set site.nodestatus as a environment variable {NODESTATUS}
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13793 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -94,6 +94,12 @@ sub subvars { | ||||
|   } | ||||
|   $ENV{XCATMASTER}=$master; | ||||
|  | ||||
|   my @nodestatus = xCAT::TableUtils->get_site_attribute("nodestatus"); | ||||
|   my $tmp=$nodestatus[0]; | ||||
|   if( defined($tmp)  ){ | ||||
| 	$ENV{NODESTATUS}=$tmp; | ||||
|   } | ||||
|  | ||||
|   #replace the env with the right value so that correct include files can be found | ||||
|   $inc =~ s/#ENV:([^#]+)#/envvar($1)/eg; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user