Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Commit 3b7d322

Browse files
committed
Update format of mdt_size to match what lvm uses
1 parent 5f0fdf2 commit 3b7d322

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

internal/pkg/pfsprovider/ansible/ansible.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func getInventory(fsType FSType, volume registry.Volume, brickAllocations []regi
8484
"mgsnode": mgsnode,
8585
"client_port": fmt.Sprintf("%d", volume.ClientPort),
8686
"lnet_suffix": getLnetSuffix(),
87-
"mdt_size": fmt.Sprintf("%dGB", getMdtSize()),
87+
"mdt_size": fmt.Sprintf("%dg", getMdtSize()),
8888
},
8989
Hosts: hosts,
9090
}

internal/pkg/pfsprovider/ansible/ansible_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func TestPlugin_GetInventory(t *testing.T) {
3939
vars:
4040
abcdefgh_client_port: "10002"
4141
lnet_suffix: ""
42-
abcdefgh_mdt_size: 20GB
42+
abcdefgh_mdt_size: 20g
4343
abcdefgh_mgsnode: dac1
4444
`
4545
assert.Equal(t, expected, result)
@@ -66,7 +66,7 @@ func TestPlugin_GetInventory_withNoOstOnOneHost(t *testing.T) {
6666
vars:
6767
abcdefgh_client_port: "10002"
6868
lnet_suffix: ""
69-
abcdefgh_mdt_size: 20GB
69+
abcdefgh_mdt_size: 20g
7070
abcdefgh_mgsnode: dac1
7171
`
7272
assert.Equal(t, expected, result)
@@ -205,7 +205,7 @@ func TestPlugin_GetInventory_MaxMDT(t *testing.T) {
205205
vars:
206206
abcdefgh_client_port: "10002"
207207
lnet_suffix: ""
208-
abcdefgh_mdt_size: 20GB
208+
abcdefgh_mdt_size: 20g
209209
abcdefgh_mgsnode: dac1
210210
`
211211
assert.Equal(t, expected, result)

0 commit comments

Comments
 (0)