Skip to content

Commit

Permalink
Allow fleet status to report correct version
Browse files Browse the repository at this point in the history
  • Loading branch information
rawalexe committed Dec 18, 2024
1 parent e7e6e91 commit a71ef98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions gg-fleet-statusd/bin/gg-fleet-statusd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

#include "gg_fleet_statusd.h"
#include <ggl/error.h>
#include <ggl/version.h>

__attribute__((visibility("default"))) const char *argp_program_version
= GGL_VERSION;

int main(int argc, char **argv) {
(void) argc;
Expand Down
3 changes: 2 additions & 1 deletion gg-fleet-statusd/src/fleet_status_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <ggl/log.h>
#include <ggl/object.h>
#include <ggl/vector.h>
#include <ggl/version.h>
#include <limits.h>
#include <pthread.h>
#include <string.h>
Expand Down Expand Up @@ -305,7 +306,7 @@ GglError publish_fleet_status_update(
}

GglObject payload_obj = GGL_OBJ_MAP(GGL_MAP(
{ GGL_STR("ggcVersion"), GGL_OBJ_BUF(GGL_STR("1.0.0")) },
{ GGL_STR("ggcVersion"), GGL_OBJ_BUF(GGL_STR(GGL_VERSION)) },
{ GGL_STR("platform"), GGL_OBJ_BUF(GGL_STR("linux")) },
{ GGL_STR("architecture"), GGL_OBJ_BUF(ARCHITECTURE) },
{ GGL_STR("runtime"), GGL_OBJ_BUF(GGL_STR("aws_nucleus_lite")) },
Expand Down

0 comments on commit a71ef98

Please sign in to comment.