Skip to content

Commit

Permalink
Get correcy package name
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKatsoulis committed Oct 15, 2021
1 parent 7258881 commit 29a6b0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const StandaloneInstructions = React.memo<Props>(({ agentPolicy, agentPol
setIsK8s('IS_NOT_KUBERNETES');
return;
}
const k8s = (pkg: PackagePolicy) => pkg.name.includes(FLEET_KUBERNETES_PACKAGE);
const k8s = (pkg: PackagePolicy) => pkg.package?.name === FLEET_KUBERNETES_PACKAGE;
setIsK8s(
(agentPol.package_policies as PackagePolicy[]).some(k8s)
? 'IS_KUBERNETES'
Expand Down

0 comments on commit 29a6b0f

Please sign in to comment.