Skip to content

Commit

Permalink
Fix thing
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwiik committed Mar 7, 2019
1 parent 7d139ab commit 4675dd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/managers/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ output "ipv4_addresses_private" {
}

output "manager_token" {
value = "${lookup(data.external.swarm_tokens.result, "manager", "")}"
value = "${data.external.swarm_tokens.result != "" ? lookup(data.external.swarm_tokens.result, "manager", "") : ""}"
description = "The Docker Swarm manager join token"
sensitive = true
}

output "worker_token" {
value = "${lookup(data.external.swarm_tokens.result, "worker", "")}"
value = "${data.external.swarm_tokens.result != "" ? lookup(data.external.swarm_tokens.result, "worker", "") : ""}"
description = "The Docker Swarm worker join token"
sensitive = true
}
Expand Down

0 comments on commit 4675dd6

Please sign in to comment.