Skip to content

Commit

Permalink
[Bug] Agent-based deployment selections are not showing on prem for i…
Browse files Browse the repository at this point in the history
…ntegrations with agentless as a deployment option (elastic#209350)

(cherry picked from commit dff20a6)
  • Loading branch information
seanrathier committed Feb 3, 2025
1 parent ebe5fca commit 5f095cd
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,14 @@ export function useSetupTechnology({
);
useEffect(() => {
const shouldBeDefault =
isOnlyAgentlessIntegration(packageInfo, integrationToEnable) ||
isAgentlessSetupDefault(packageInfo, integrationToEnable)
isAgentlessEnabled &&
(isOnlyAgentlessIntegration(packageInfo, integrationToEnable) ||
isAgentlessSetupDefault(packageInfo, integrationToEnable))
? SetupTechnology.AGENTLESS
: SetupTechnology.AGENT_BASED;
setDefaultSetupTechnology(shouldBeDefault);
setSelectedSetupTechnology(shouldBeDefault);
}, [packageInfo, integrationToEnable]);
}, [isAgentlessEnabled, packageInfo, integrationToEnable]);

const agentlessPolicyName = getAgentlessAgentPolicyNameFromPackagePolicyName(packagePolicy.name);

Expand Down

0 comments on commit 5f095cd

Please sign in to comment.