Skip to content

Commit

Permalink
refactor(base_docker_service): remove hyphen from uuid in name
Browse files Browse the repository at this point in the history
  • Loading branch information
tafaust committed Sep 1, 2024
1 parent 7f262c0 commit 4302fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/base_docker_service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ locals {
}

resource "docker_service" "this" {
name = trim(substr(join("_", compact([var.namespace, "svc", var.name, uuid()])), 0, 63), "-_ ")
name = trim(substr(join("_", compact([var.namespace, "svc", var.name, replace(uuid(), "-", "")])), 0, 63), "-_ ")

dynamic "labels" {
for_each = var.namespace == null ? [] : [1]
Expand Down

0 comments on commit 4302fb4

Please sign in to comment.