-Fix crash when a plugin provides callback data with something other than a list reference when called from another plugin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9013 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -1428,7 +1428,11 @@ sub build_response { | ||||
|   my $resp = shift; | ||||
|   foreach (keys %$resp) { | ||||
|     my $subresp = dclone($resp->{$_}); | ||||
|     push (@{$Main::resps->{$_}}, @{$subresp}); | ||||
|     if (ref $subresp eq 'ARRAY') { | ||||
|         push (@{$Main::resps->{$_}}, @{$subresp}); | ||||
|     } else { | ||||
|         push (@{$Main::resps->{$_}}, $subresp); | ||||
|     } | ||||
|   } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user