Page MenuHomeSoftware Heritage

Remove deprecation warning
ClosedPublic

Authored by vsellier on Nov 26 2020, 5:16 PM.

Details

Summary

Remove this warning when terraform is run :

Warning: Interpolation-only expressions are deprecated

  on ../modules/node/main.tf line 97, in resource "proxmox_vm_qemu" "node":
  97:       private_key = "${file(var.config["user_admin_ssh_private_key_path"])}"

Terraform 0.11 and earlier required all non-constant expressions to be
provided via interpolation syntax, but this pattern is now deprecated. To
silence this warning, remove the "${ sequence from the start and the }"
sequence from the end of this expression, leaving just the inner expression.

Template interpolation syntax is still used to construct strings from
expressions when the template includes multiple interpolation sequences or a
mixture of literal strings and interpolations. This deprecation applies only
to templates that consist entirely of a single interpolation sequence.

(and 8 more similar warnings elsewhere)
Test Plan

terraform plan

Diff Detail

Repository
rSPRE sysadm-provisioning
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.