diff --git a/cyborg/common/nova_client.py b/cyborg/common/nova_client.py index 99973266..223cda98 100644 --- a/cyborg/common/nova_client.py +++ b/cyborg/common/nova_client.py @@ -84,7 +84,7 @@ class NovaAPI(object): """Notify Nova that ARQ bindings are resolved for a given instance. :param instance_uuid: UUID of the instance whose ARQs are resolved - :param arq_bind_statuses: List of (arq_state, arq_bind_status) tuples + :param arq_bind_statuses: List of (arq_uuid, arq_bind_status) tuples :returns: None """ events = self._get_acc_changed_events(instance_uuid, arq_bind_statuses) diff --git a/cyborg/objects/extarq/ext_arq_job.py b/cyborg/objects/extarq/ext_arq_job.py index 1a3cdc89..1f4f4fe8 100644 --- a/cyborg/objects/extarq/ext_arq_job.py +++ b/cyborg/objects/extarq/ext_arq_job.py @@ -57,8 +57,8 @@ class ExtARQJobMixin(object): def start_bind_job(self, context, valid_fields): """Check and start bind jobs for ARQ.""" - # Check can ARC be bound. expected = ARQ_STATES_TRANSFORM_MATRIX[constants.ARQ_BIND_STARTED] + # Check whether ARQ can be bound. if self.arq.state not in expected: raise exception.ARQBadState( state=self.arq.state, uuid=self.arq.uuid, expected=expected)