From bce4d02dd2d4d5a7d660997e44e27452cee957ea Mon Sep 17 00:00:00 2001 From: matias-portainer <104775949+matias-portainer@users.noreply.github.com> Date: Mon, 22 Aug 2022 12:08:53 -0300 Subject: [PATCH] fix(edge): save edge checkin interval during endpoint creation (#7541) --- app/portainer/environments/environment.service/create.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/portainer/environments/environment.service/create.ts b/app/portainer/environments/environment.service/create.ts index cc155ab3e..3d87da63c 100644 --- a/app/portainer/environments/environment.service/create.ts +++ b/app/portainer/environments/environment.service/create.ts @@ -105,11 +105,11 @@ export interface EnvironmentOptions { url?: string; publicUrl?: string; meta?: EnvironmentMetadata; - checkinInterval?: number; azure?: AzureSettings; tls?: TLSSettings; isEdgeDevice?: boolean; gpus?: Gpu[]; + pollFrequency?: number; } interface CreateRemoteEnvironment { @@ -175,6 +175,7 @@ export function createEdgeAgentEnvironment({ meta = { tagIds: [] }, gpus = [], isEdgeDevice, + pollFrequency, }: CreateEdgeAgentEnvironment) { return createEnvironment( name, @@ -187,6 +188,7 @@ export function createEdgeAgentEnvironment({ }, gpus, isEdgeDevice, + pollFrequency, ...meta, } ); @@ -211,7 +213,7 @@ async function createEnvironment( PublicURL: options.publicUrl, GroupID: groupId, TagIds: arrayToJson(tagIds), - CheckinInterval: options.checkinInterval, + CheckinInterval: options.pollFrequency, IsEdgeDevice: options.isEdgeDevice, Gpus: arrayToJson(options.gpus), };