mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	Fix various issues in confluent plugin
confluent plugin was triggering perl warnings in various situations. Correct those mistakes.
This commit is contained in:
		@@ -342,7 +342,7 @@ sub makeconfluentcfg {
 | 
			
		||||
                    die "confluent does not currently support termserver";
 | 
			
		||||
                    $termservers{ $_->{termserver} } = 1; # dont add this one again
 | 
			
		||||
                }
 | 
			
		||||
                if ($type{ $_->{node} } =~ /fsp|bpa|hmc|ivm/) {
 | 
			
		||||
                if ($type{$_->{node}} and $type{ $_->{node} } =~ /fsp|bpa|hmc|ivm/) {
 | 
			
		||||
                    $keepdoing = 0;    # these types dont have consoles
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
@@ -450,14 +450,16 @@ sub donodeent {
 | 
			
		||||
        }
 | 
			
		||||
        my %parameters;
 | 
			
		||||
        if ($cmeth) { $parameters{'console.method'} = $cmeth; }
 | 
			
		||||
        if ($cmeth eq 'ipmi' or not $cmeth) {
 | 
			
		||||
        if (not $cmeth or $cmeth eq 'ipmi') {
 | 
			
		||||
            $parameters{'secret.hardwaremanagementuser'} =
 | 
			
		||||
              $ipmiauthdata->{$node}->{username};
 | 
			
		||||
            $parameters{'secret.hardwaremanagementpassword'} =
 | 
			
		||||
              $ipmiauthdata->{$node}->{password};
 | 
			
		||||
            my $bmc = $ipmientries->{$node}->[0]->{bmc};
 | 
			
		||||
            $bmc =~ s/,.*//;
 | 
			
		||||
            $parameters{'hardwaremanagement.manager'} = $bmc;
 | 
			
		||||
            if ($bmc) {
 | 
			
		||||
		 $bmc =~ s/,.*//;
 | 
			
		||||
            	$parameters{'hardwaremanagement.manager'} = $bmc;
 | 
			
		||||
             }
 | 
			
		||||
        }
 | 
			
		||||
        if (defined($cfgent->{consoleondemand})) {
 | 
			
		||||
            if ($cfgent->{consoleondemand}) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user