mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	add export NODE=nodename; to thexdsh precommand so the node knows it's name as defined in the database
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16147 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -1019,11 +1019,15 @@ sub fork_fanout_dsh
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    # save the original exports,  we are going to add the unique node name below
 | 
			
		||||
    my $origprecommand=$$options{'pre-command'};
 | 
			
		||||
    while (@$targets_waiting
 | 
			
		||||
           && (keys(%$targets_active) < $$options{'fanout'}))
 | 
			
		||||
    {
 | 
			
		||||
        my $user_target       = shift @$targets_waiting;
 | 
			
		||||
        # now add export NODE=nodename to the pre-command;
 | 
			
		||||
        my $exportnode="export NODE=$user_target;";
 | 
			
		||||
        $$options{'pre-command'} = $exportnode . $origprecommand;
 | 
			
		||||
        my $target_properties = $$resolved_targets{$user_target};
 | 
			
		||||
        my @commands;
 | 
			
		||||
        my $localShell        =
 | 
			
		||||
@@ -1037,7 +1041,6 @@ sub fork_fanout_dsh
 | 
			
		||||
            $$options{'post-command'} = "";
 | 
			
		||||
            $dsh_cmd_background = 1;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if ($$options{'environment'})
 | 
			
		||||
        {
 | 
			
		||||
            # if we are on a servicenode need to get the environment file
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user