Skip to content

Commit

Permalink
apt_sku fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaimie Withers committed Sep 26, 2024
1 parent cf023c5 commit 7f7032d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
schemaVersion: 1.0.0
name: tre-service-guacamole-linuxvm-ouh2
version: 1.0.2
version: 1.0.3
description: "An Azure TRE User Resource Template for Guacamole (Linux)"
dockerfile: Dockerfile.tmpl
registry: azuretre
Expand Down Expand Up @@ -29,6 +29,7 @@ custom:
conda_config: false
"OUH Ubuntu 18.04 Data Science VM":
source_image_name: OUHLinuxImage
apt_sku: 22.04
# source_image_reference:
# publisher: microsoft-dsvm
# offer: ubuntu-1804
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ locals {
# Handle both source_image_reference and source_image_name cases
selected_image_source_id = lookup(local.selected_image, "source_image_name", null) == null ? null : "${var.image_gallery_id}/images/${local.selected_image.source_image_name}"
# Apt SKU should only be referenced if source_image_reference is not null
apt_sku = length(local.selected_image_source_refs) > 0 ? local.selected_image_source_refs[0]["apt_sku"] : null
apt_sku = length(local.selected_image_source_refs) > 0 ? local.selected_image_source_refs[0]["apt_sku"] : "22.04"
}

0 comments on commit 7f7032d

Please sign in to comment.