Skip to content

Commit 6c677eb

Browse files
fixed a typo
1 parent 3cce61e commit 6c677eb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

plugin/commands/block/volume_detail.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (cmd *VolumeDetailCommand) Run(args []string) error {
137137
table.Add(T("Notes"), decodedValue)
138138
hasEncryption := T("False")
139139
if (blockVolume.HasEncryptionAtRest != nil && *blockVolume.HasEncryptionAtRest == true) {
140-
hasEncryption := T("True")
140+
hasEncryption = T("True")
141141
}
142142
table.Add(T("Encrypted"), hasEncryption)
143143
table.Print()

plugin/commands/file/volume_detail.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ func (cmd *VolumeDetailCommand) Run(args []string) error {
137137
}
138138
table.Add(T("Notes"), decodedValue)
139139
hasEncryption := T("False")
140-
if (blockVolume.HasEncryptionAtRest != nil && *blockVolume.HasEncryptionAtRest == true) {
141-
hasEncryption := T("True")
140+
if (fileVolume.HasEncryptionAtRest != nil && *fileVolume.HasEncryptionAtRest == true) {
141+
hasEncryption = T("True")
142142
}
143143
table.Add(T("Encrypted"), hasEncryption)
144144
table.Print()

0 commit comments

Comments
 (0)