commit adab86feb487694b729090969ab8607f73fa307a
Author: Stan Lagun <email address hidden>
Date: Thu Oct 13 09:25:58 2016 -0700
Remove getRegion() calls from network initializers
.init methods of the components are called before
the environment is initialized. Thus regions are not
configured at this point. Thus if the object is not
directly or indirectly owned by the CloudRegion
it cannot call getRegion() from the initializer.
Normally networks do belong to CloudRegion
so there is no problem. However a Network instance
such as ExistingNetwork might be passed to the Instance
class which is not owned by the ClouydRegion and in this
case an exception will be thrown.
Reviewed: https:/ /review. openstack. org/386099 /git.openstack. org/cgit/ openstack/ murano/ commit/ ?id=adab86feb48 7694b729090969a b8607f73fa307a
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit adab86feb487694 b729090969ab860 7f73fa307a
Author: Stan Lagun <email address hidden>
Date: Thu Oct 13 09:25:58 2016 -0700
Remove getRegion() calls from network initializers
.init methods of the components are called before
the environment is initialized. Thus regions are not
configured at this point. Thus if the object is not
directly or indirectly owned by the CloudRegion
it cannot call getRegion() from the initializer.
Normally networks do belong to CloudRegion
so there is no problem. However a Network instance
such as ExistingNetwork might be passed to the Instance
class which is not owned by the ClouydRegion and in this
case an exception will be thrown.
Change-Id: I1f3c4f53d4ebc9 2772c79c9991b19 840aa0b0ed7
Closes-Bug: #1633096