fix: nil issue
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
		
							parent
							
								
									286a99cd10
								
							
						
					
					
						commit
						f7838ba4a5
					
				|  | @ -2974,7 +2974,11 @@ func (st *HelmState) flagsForDiff(helm helmexec.Interface, release *ReleaseSpec, | |||
| 		flags = st.appendSuppressOutputLineRegexFlags(flags, release, suppressOutputLineRegex) | ||||
| 	} | ||||
| 
 | ||||
| 	if opt.TakeOwnership || st.HelmDefaults.TakeOwnership || release.TakeOwnership { | ||||
| 	takeOwnership := false | ||||
| 	if opt != nil { | ||||
| 		takeOwnership = opt.TakeOwnership | ||||
| 	} | ||||
| 	if takeOwnership || st.HelmDefaults.TakeOwnership || release.TakeOwnership { | ||||
| 		diffVersion, err := helmexec.GetPluginVersion("diff", settings.PluginsDirectory) | ||||
| 		if err != nil { | ||||
| 			return nil, nil, err | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue