From e5b18479defa367c43ac24a14f282792c8cd6944 Mon Sep 17 00:00:00 2001 From: Ian Eyberg Date: Fri, 6 Dec 2024 07:41:47 -0800 Subject: [PATCH] allow overriding default azure gallery name (#1669) --- provider/azure/azure_image.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/provider/azure/azure_image.go b/provider/azure/azure_image.go index 304f1b9d..cc7da803 100644 --- a/provider/azure/azure_image.go +++ b/provider/azure/azure_image.go @@ -424,6 +424,11 @@ func (a *Azure) createGalleryImage(ctx context.Context, location string, imageNa } func (a *Azure) galleryName() string { + galleryName := os.Getenv("AZURE_GALLERY_NAME") + if galleryName != "" { + return galleryName + } + return "nanos_gallery" }