From 8084bb95c72a0bd7205366b9bc92d76e4cb85a23 Mon Sep 17 00:00:00 2001 From: Grant Gongaware Date: Wed, 14 Aug 2019 08:07:58 -0700 Subject: [PATCH] Work around OTP being required by default --- proxmox/provider.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proxmox/provider.go b/proxmox/provider.go index 8b9f52b..7dbf230 100644 --- a/proxmox/provider.go +++ b/proxmox/provider.go @@ -55,16 +55,16 @@ func Provider() *schema.Provider { Default: false, }, "pm_otp": { - Type: schema.TypeString, - Required: true, - DefaultFunc: schema.EnvDefaultFunc("PM_OTP", nil), + Type: schema.TypeString, + Optional: true, + DefaultFunc: schema.EnvDefaultFunc("PM_OTP", ""), Description: "OTP 2FA code (if required)", }, }, ResourcesMap: map[string]*schema.Resource{ "proxmox_vm_qemu": resourceVmQemu(), - "proxmox_lxc": resourceLxc(), + "proxmox_lxc": resourceLxc(), // TODO - storage_iso // TODO - bridge // TODO - vm_qemu_template