Skip to content

Commit

Permalink
cleanup to objects.fields
Browse files Browse the repository at this point in the history
Since 'AutoTypedField' has been redefined in scope of objects.fields,
we should use local definitions.
This is better for code consistence by using same coding style.

Change-Id: I4d37d6b093e56f85a5a5de8d81b6bb0411a8f73c
  • Loading branch information
huaqiangwang committed Oct 15, 2019
1 parent 6b60cae commit b8d4e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nova/objects/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ class InstancePowerStateField(BaseEnumField):
AUTO_TYPE = InstancePowerState()


class ListOfListsOfStringsField(fields.AutoTypedField):
class ListOfListsOfStringsField(AutoTypedField):
AUTO_TYPE = List(List(fields.String()))


Expand All @@ -1284,5 +1284,5 @@ class ListOfUUIDField(AutoTypedField):
AUTO_TYPE = List(fields.UUID())


class DictOfSetOfIntegersField(fields.AutoTypedField):
class DictOfSetOfIntegersField(AutoTypedField):
AUTO_TYPE = Dict(Set(fields.Integer()))

0 comments on commit b8d4e19

Please sign in to comment.