0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-02 03:22:59 +00:00

fix(lxc): mount_point.backup should be false by default (#1327)

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
Pavel Boldyrev 2024-05-26 17:42:15 -04:00 committed by GitHub
parent 32de050605
commit 206fc4b03d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -156,7 +156,7 @@ output "ubuntu_container_public_key" {
- `mount_point`
- `acl` (Optional) Explicitly enable or disable ACL support.
- `backup` (Optional) Whether to include the mount point in backups (only
used for volume mount points).
used for volume mount points, defaults to `false`).
- `mount_options` (Optional) List of extra mount options.
- `path` (Required) Path to the mount point as seen from inside the
container.

View File

@ -56,7 +56,7 @@ const (
dvMemoryDedicated = 512
dvMemorySwap = 0
dvMountPointACL = false
dvMountPointBackup = true
dvMountPointBackup = false
dvMountPointPath = ""
dvMountPointQuota = false
dvMountPointReadOnly = false
@ -2211,7 +2211,7 @@ func containerRead(ctx context.Context, d *schema.ResourceData, m interface{}) d
if mp.Backup != nil {
mountPoint[mkMountPointBackup] = *mp.Backup
} else {
mountPoint[mkMountPointBackup] = true
mountPoint[mkMountPointBackup] = dvMountPointBackup
}
if mp.MountOptions != nil {