Method 'rolling_configuration_update' in trove/cluster/models.py.
It allow re-applying the same configuration to an instance.In if code
block, if the instance does not attach any configuration or it has
attached the configuration that the parameter passed, then do attach
thing. "else" block means the instance has attached another config,
should use "instance.configuration.id" instead of "configuration_id",
one is a attached configuration, one is a wanted configuration, and
they are not the same.
Besides, fix a spelling mistake in trove/instance/models.py
Reviewed: https:/ /review. openstack. org/469351 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=650235435d5 99a2151cdaf8a46 c91651fa6d7a08
Committed: https:/
Submitter: Jenkins
Branch: master
commit 650235435d599a2 151cdaf8a46c916 51fa6d7a08
Author: zhanggang <email address hidden>
Date: Wed May 31 02:28:30 2017 -0400
Log the right attached configuration id
Method 'rolling_ configuration_ update' in trove/cluster/ models. py. configuration. id" instead of "configuration_id", models. py
It allow re-applying the same configuration to an instance.In if code
block, if the instance does not attach any configuration or it has
attached the configuration that the parameter passed, then do attach
thing. "else" block means the instance has attached another config,
should use "instance.
one is a attached configuration, one is a wanted configuration, and
they are not the same.
Besides, fix a spelling mistake in trove/instance/
Change-Id: I4b6fb338de611c e39a8173dcf4b6e 17714c380b9
Closes-Bug: 1693466