address review suggestions

This commit is contained in:
Stavros kois
2023-11-20 18:00:53 +02:00
committed by Stavros Kois
parent a993843b60
commit 3183643dbf

View File

@@ -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