Volume type with encryption comparison
In volume retype with encryption, comparison of volume types with same encryption will returns true, instead of false because of unique field 'encryption_id', so ignore this field before comparing. Change-Id: I065b904bc881324de79ce59afd5bb97a97ea1b85 Closes-Bug: 1700741
This commit is contained in:
@@ -37,7 +37,7 @@ CONF = cfg.CONF
|
||||
LOG = logging.getLogger(__name__)
|
||||
QUOTAS = quota.QUOTAS
|
||||
ENCRYPTION_IGNORED_FIELDS = ['volume_type_id', 'created_at', 'updated_at',
|
||||
'deleted_at']
|
||||
'deleted_at', 'encryption_id']
|
||||
|
||||
|
||||
def create(context,
|
||||
|
||||
Reference in New Issue
Block a user