7e77bf34f2
This is a following patch of [1]. In [1] comment, tim suggested implementation for same behavior with less code. This change implemented the suggestion. See [1] for more details. [1]: https://review.openstack.org/#/c/547306/ Change-Id: Ifd8a0534fbdf41837977028c0c6ef99f1f6ac0f0