From ecea14d4a98fa29a50e93ca02adfb7dceaf38d4e Mon Sep 17 00:00:00 2001 From: Takashi NATSUME Date: Mon, 9 Apr 2018 22:50:52 +0900 Subject: [PATCH] Fix comments at the 'save' method of objects.Instance * Remove unnecessary parameter description * Fix a format of the comments * Fix a wrong method name (self.obj_what_changed()) TrivialFix Change-Id: If5db63bf1b63ca8f1ef7b73c5f798122275b7cd3 --- nova/objects/instance.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/nova/objects/instance.py b/nova/objects/instance.py index b9094c2342..9f0daf94ad 100644 --- a/nova/objects/instance.py +++ b/nova/objects/instance.py @@ -711,18 +711,16 @@ class Instance(base.NovaPersistentObject, base.NovaObject, """Save updates to this instance Column-wise updates will be made based on the result of - self.what_changed(). If expected_task_state is provided, + self.obj_what_changed(). If expected_task_state is provided, it will be checked against the in-database copy of the instance before updates are made. - :param:context: Security context - :param:expected_task_state: Optional tuple of valid task states - for the instance to be in - :param:expected_vm_state: Optional tuple of valid vm states - for the instance to be in + :param expected_vm_state: Optional tuple of valid vm states + for the instance to be in + :param expected_task_state: Optional tuple of valid task states + for the instance to be in :param admin_state_reset: True if admin API is forcing setting - of task_state/vm_state - + of task_state/vm_state """ # Store this on the class because _cell_name_blocks_sync is useless # after the db update call below.