mirror of
https://github.com/truenas/charts.git
synced 2026-04-09 05:39:24 +08:00
address review suggestions
This commit is contained in:
committed by
Stavros Kois
parent
a993843b60
commit
3183643dbf
@@ -15,7 +15,7 @@ def storage_migrate(storage):
|
||||
storage['hostPathConfig'] = {'hostPath': storage['hostPath']}
|
||||
delete_keys.append('hostPath')
|
||||
|
||||
if storage['type'] == 'ixVolume':
|
||||
elif storage['type'] == 'ixVolume':
|
||||
# Check if the key exists, if not we have already migrated
|
||||
if not storage.get('datasetName'):
|
||||
return storage
|
||||
@@ -25,7 +25,7 @@ def storage_migrate(storage):
|
||||
|
||||
|
||||
for key in delete_keys:
|
||||
del storage[key]
|
||||
storage.pop(key)
|
||||
|
||||
return storage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user