Skip to content

Commit

Permalink
Update bootstrap config write timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
sameerzuberi authored and rawalexe committed Dec 13, 2024
1 parent 238907f commit 4ff5fd0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions ggdeploymentd/src/bootstrap_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ GglError save_component_info(
component_name
),
GGL_OBJ_BUF(component_version),
&(int64_t) { 0 }
&(int64_t) { 3 }
);
if (ret != GGL_ERR_OK) {
GGL_LOGE(
Expand All @@ -93,7 +93,7 @@ GglError save_component_info(
component_name
),
GGL_OBJ_BUF(component_version),
&(int64_t) { 0 }
&(int64_t) { 3 }
);
if (ret != GGL_ERR_OK) {
GGL_LOGE(
Expand Down Expand Up @@ -131,7 +131,7 @@ GglError save_iot_jobs_id(GglBuffer jobs_id) {
GGL_STR("jobsID")
),
GGL_OBJ_BUF(jobs_id),
&(int64_t) { 0 }
&(int64_t) { 3 }
);
if (ret != GGL_ERR_OK) {
GGL_LOGE("Failed to write IoT Jobs ID to config.");
Expand All @@ -154,7 +154,7 @@ GglError save_iot_jobs_version(int64_t jobs_version) {
GGL_STR("jobsVersion")
),
GGL_OBJ_I64(jobs_version),
&(int64_t) { 0 }
&(int64_t) { 3 }
);
if (ret != GGL_ERR_OK) {
GGL_LOGE("Failed to write IoT Jobs Version to config.");
Expand Down Expand Up @@ -187,7 +187,7 @@ GglError save_deployment_info(GglDeployment *deployment) {
GGL_STR("deploymentDoc")
),
deployment_doc,
&(int64_t) { 0 }
&(int64_t) { 3 }
);

if (ret != GGL_ERR_OK) {
Expand All @@ -211,7 +211,7 @@ GglError save_deployment_info(GglDeployment *deployment) {
GGL_STR("deploymentType")
),
GGL_OBJ_BUF(deployment_type),
&(int64_t) { 0 }
&(int64_t) { 3 }
);

if (ret != GGL_ERR_OK) {
Expand Down
4 changes: 2 additions & 2 deletions ggdeploymentd/src/deployment_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,7 @@ static GglError add_arn_list_to_config(
GGL_STR("configArn")
),
GGL_OBJ_LIST(arn_list.list),
0
&(int64_t) { 3 }
);
if (ret != GGL_ERR_OK) {
GGL_LOGE(
Expand All @@ -1941,7 +1941,7 @@ static GglError add_arn_list_to_config(
ret = ggl_gg_config_write(
GGL_BUF_LIST(GGL_STR("services"), component_name, GGL_STR("configArn")),
GGL_OBJ_LIST(new_arn_list.list),
0
&(int64_t) { 3 }
);
if (ret != GGL_ERR_OK) {
GGL_LOGE("Failed to write configuration arn list to the config.");
Expand Down

0 comments on commit 4ff5fd0

Please sign in to comment.