Migration Data Check fixes
Fix misspelling in 'ShareNetwoksFieldLengthChecks' class name.
Indent CreateFromSnapshotExtraSpecAndShareColumn so that it
is a standalone class rather than a subclass of
MoveShareTypeIdToInstancesCheck.
TrivialFix
@@ -707,7 +707,7 @@ class ShareSnapshotInstanceNewProviderLocationColumnChecks(
@map_to_migration('221a83cfd85b')
-class ShareNetwoksFieldLengthChecks(BaseMigrationChecks):
+class ShareNetworksFieldLengthChecks(BaseMigrationChecks):
def setup_upgrade_data(self, engine):
user_id = '123456789123456789'
project_id = 'project_id'
@@ -1180,6 +1180,7 @@ class MoveShareTypeIdToInstancesCheck(BaseMigrationChecks):
None)['share_type_id'],
share['share_type_id'])
+
@map_to_migration('3e7d62517afa')
class CreateFromSnapshotExtraSpecAndShareColumn(BaseMigrationChecks):
@@ -1202,7 +1203,6 @@ class MoveShareTypeIdToInstancesCheck(BaseMigrationChecks):
'deleted': 'False',
'name': 'share-type-2',
'is_public': True,
-
},
]
snapshot_support = ('0', '1')
