Merge "Add a note about force_hosts only ever having a single value"

This commit is contained in:
Jenkins 2017-03-16 17:04:32 +00:00 committed by Gerrit Code Review
commit 7a1c18f73f

View File

@ -55,7 +55,13 @@ class RequestSpec(base.NovaObject):
'flavor': fields.ObjectField('Flavor', nullable=False),
'num_instances': fields.IntegerField(default=1),
'ignore_hosts': fields.ListOfStringsField(nullable=True),
# NOTE(mriedem): In reality, you can only ever have one
# host in the force_hosts list. The fact this is a list
# is a mistake perpetuated over time.
'force_hosts': fields.ListOfStringsField(nullable=True),
# NOTE(mriedem): In reality, you can only ever have one
# node in the force_nodes list. The fact this is a list
# is a mistake perpetuated over time.
'force_nodes': fields.ListOfStringsField(nullable=True),
'requested_destination': fields.ObjectField('Destination',
nullable=True,