From 801b7d43ee80b38476b0687816ed47ee139d2c5e Mon Sep 17 00:00:00 2001 From: Oscar Zhou <100548325+oscarzhou-portainer@users.noreply.github.com> Date: Fri, 7 Jul 2023 15:48:45 +1200 Subject: [PATCH] refactor(edgestack): rename version to fileVersion (#9157) --- api/portainer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/portainer.go b/api/portainer.go index eb6749bd7..72576bf58 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -301,7 +301,9 @@ type ( // StackDeploymentInfo records the information of a deployed stack StackDeploymentInfo struct { - Version int `json:"Version"` + // FileVersion is the version of the stack file, used to detect changes + FileVersion int `json:"FileVersion"` + // ConfigHash is the commit hash of the git repository used for deploying the stack ConfigHash string `json:"ConfigHash"` }