From e00895974028236f51821c4feb51cd1bf7140390 Mon Sep 17 00:00:00 2001 From: Vishnu Challa Date: Mon, 11 Dec 2023 15:40:24 -0500 Subject: [PATCH 1/2] fixing JB binary for amd64 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 57e0ea9..67b9c17 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ ARCH := $(shell arch) OS_TYPE := $(shell uname) JB_OS_TYPE := $(shell uname | tr '[:upper:]' '[:lower:]') JSONNET := https://github.com/google/go-jsonnet/releases/download/v0.20.0/go-jsonnet_0.20.0_$(OS_TYPE)_$(ARCH).tar.gz -JB = https://github.com/jsonnet-bundler/jsonnet-bundler/releases/latest/download/jb-$(JB_OS_TYPE)-$(ARCH) +JB := https://github.com/jsonnet-bundler/jsonnet-bundler/releases/latest/download/jb-$(JB_OS_TYPE)-$(subst x86_64,amd64,$(ARCH)) BINDIR = bin TEMPLATESDIR = templates OUTPUTDIR = rendered From f3da60fef56ea0f3483a7ef707ac82644cfc72cb Mon Sep 17 00:00:00 2001 From: Vishnu Challa Date: Mon, 11 Dec 2023 16:08:11 -0500 Subject: [PATCH 2/2] bug fix in tags list --- dittybopper/syncer/entrypoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dittybopper/syncer/entrypoint.py b/dittybopper/syncer/entrypoint.py index f2bf23e..05919a8 100644 --- a/dittybopper/syncer/entrypoint.py +++ b/dittybopper/syncer/entrypoint.py @@ -106,7 +106,7 @@ def create_dashboards(self): if "tags" in dashboard_json.keys(): dashboard_json["tags"].append(self.git_commit_hash) else: - dashboard_json["tags"] = self.git_commit_hash + dashboard_json["tags"] = [self.git_commit_hash] try: response = requests.post( f"{self.grafana_url}/api/dashboards/db",