Skip to content

Commit

Permalink
Unity: fix StoragePoolTypeEnum issue (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
yong-huang authored Mar 3, 2022
1 parent aeda20a commit 1bf2193
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions storops/unity/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ class PoolUnitTypeEnum(UnityEnum):


class StoragePoolTypeEnum(UnityEnum):
DYNAMIC = (1, 'Dynamic')
TRADITIONAL = (2, 'Traditional')
TRADITIONAL = (1, 'Traditional')
DYNAMIC = (2, 'Dynamic')


class IpProtocolVersionEnum(UnityEnum):
Expand Down
2 changes: 1 addition & 1 deletion storops_test/unity/rest_data/pool/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
2
],
"raidType": 12,
"type": 2,
"type": 1,
"isAllFlash": false,
"harvestState": 0,
"instanceId": "root/emc:EMC_UEM_MappedStoragePoolLeaf%InstanceID=pool_1",
Expand Down
2 changes: 1 addition & 1 deletion storops_test/unity/rest_data/pool/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"isHarvestEnabled": true,
"poolSpaceHarvestHighThreshold": 80,
"isSnapHarvestEnabled": true,
"type": 1,
"type": 2,
"isFASTCacheEnabled": true
},
"response": "create_pool_4.json"
Expand Down
2 changes: 1 addition & 1 deletion storops_test/unity/rest_data/pool/pool_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"snapSizeSubscribed": 873220538368,
"metadataSizeUsed": 36775657472,
"snapSizeUsed": 24452407296,
"type": 2,
"type": 1,
"isAllFlash": false
}
}
2 changes: 1 addition & 1 deletion storops_test/unity/rest_data/pool/pool_4.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"raidType": 1,
"harvestState": 0,
"type": 1,
"type": 2,
"instanceId": "root/emc:EMC_UEM_MappedStoragePoolLeaf%InstanceID=pool_4",
"objectId": 12884901893,
"health": {
Expand Down

0 comments on commit 1bf2193

Please sign in to comment.