Skip to content

Commit 244c42e

Browse files
fixed secret creationg bug (#175)
1 parent ff7f66c commit 244c42e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

locals.auth.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,21 @@ locals {
6868
generate_admin_ssh_key_count = (
6969
(lower(var.os_type) == "linux") &&
7070
(
71-
(var.generate_admin_password_or_ssh_key == true) ||
71+
(var.generate_admin_password_or_ssh_key == true) &&
7272
(var.account_credentials.admin_credentials.generate_admin_password_or_ssh_key == true)
7373
) && (local.password_authentication_disabled == true) ? 1 : 0
7474
)
7575
generate_random_password_count = (
7676
(
7777
(lower(var.os_type) == "windows") &&
7878
(
79-
(var.generate_admin_password_or_ssh_key == true) ||
79+
(var.generate_admin_password_or_ssh_key == true) &&
8080
(var.account_credentials.admin_credentials.generate_admin_password_or_ssh_key == true)
8181
)
8282
) ? 1 : (
8383
(lower(var.os_type) == "linux") &&
8484
(
85-
(var.generate_admin_password_or_ssh_key == true || var.account_credentials.admin_credentials.generate_admin_password_or_ssh_key == true) && (local.password_authentication_disabled == false)
85+
(var.generate_admin_password_or_ssh_key == true && var.account_credentials.admin_credentials.generate_admin_password_or_ssh_key == true) && (local.password_authentication_disabled == false)
8686
)
8787
) ? 1 : 0
8888
)

0 commit comments

Comments
 (0)