mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-03 12:02:57 +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:
parent
32de050605
commit
206fc4b03d
@ -156,7 +156,7 @@ output "ubuntu_container_public_key" {
|
|||||||
- `mount_point`
|
- `mount_point`
|
||||||
- `acl` (Optional) Explicitly enable or disable ACL support.
|
- `acl` (Optional) Explicitly enable or disable ACL support.
|
||||||
- `backup` (Optional) Whether to include the mount point in backups (only
|
- `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.
|
- `mount_options` (Optional) List of extra mount options.
|
||||||
- `path` (Required) Path to the mount point as seen from inside the
|
- `path` (Required) Path to the mount point as seen from inside the
|
||||||
container.
|
container.
|
||||||
|
@ -56,7 +56,7 @@ const (
|
|||||||
dvMemoryDedicated = 512
|
dvMemoryDedicated = 512
|
||||||
dvMemorySwap = 0
|
dvMemorySwap = 0
|
||||||
dvMountPointACL = false
|
dvMountPointACL = false
|
||||||
dvMountPointBackup = true
|
dvMountPointBackup = false
|
||||||
dvMountPointPath = ""
|
dvMountPointPath = ""
|
||||||
dvMountPointQuota = false
|
dvMountPointQuota = false
|
||||||
dvMountPointReadOnly = false
|
dvMountPointReadOnly = false
|
||||||
@ -2211,7 +2211,7 @@ func containerRead(ctx context.Context, d *schema.ResourceData, m interface{}) d
|
|||||||
if mp.Backup != nil {
|
if mp.Backup != nil {
|
||||||
mountPoint[mkMountPointBackup] = *mp.Backup
|
mountPoint[mkMountPointBackup] = *mp.Backup
|
||||||
} else {
|
} else {
|
||||||
mountPoint[mkMountPointBackup] = true
|
mountPoint[mkMountPointBackup] = dvMountPointBackup
|
||||||
}
|
}
|
||||||
|
|
||||||
if mp.MountOptions != nil {
|
if mp.MountOptions != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user