From 98ec2a610ca8593f4fdf475a4a4ce874e29b8e2a Mon Sep 17 00:00:00 2001 From: Ashokaditya Date: Wed, 3 May 2023 16:46:40 +0200 Subject: [PATCH] replace all . with - refs elastic/kibana/pull/155360 --- .../scripts/endpoint/endpoint_agent_runner/elastic_endpoint.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/security_solution/scripts/endpoint/endpoint_agent_runner/elastic_endpoint.ts b/x-pack/plugins/security_solution/scripts/endpoint/endpoint_agent_runner/elastic_endpoint.ts index f35901e263d58..0c53f84cb9965 100644 --- a/x-pack/plugins/security_solution/scripts/endpoint/endpoint_agent_runner/elastic_endpoint.ts +++ b/x-pack/plugins/security_solution/scripts/endpoint/endpoint_agent_runner/elastic_endpoint.ts @@ -35,7 +35,7 @@ export const enrollEndpointHost = async (): Promise => { try { const uniqueId = Math.random().toString().substring(2, 6); - const username = userInfo().username.toLowerCase().replace('.', '-'); // Multipass doesn't like periods in username + const username = userInfo().username.toLowerCase().replaceAll('.', '-'); // Multipass doesn't like periods in username const policyId: string = policy || (await getOrCreateAgentPolicyId()); if (!policyId) {