Add connection backreference to proxy instances

Proxy instances need to be able to call methods on the main connection.
Add a backreference.

Change-Id: If54c4c6f1f43dc5503d59e87a79b08bad561bb54
This commit is contained in:
Monty Taylor 2018-06-29 08:39:01 -05:00
parent 34ea72ce5b
commit b9768bdbce
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ class ServiceDescription(object):
task_manager=instance.task_manager,
allow_version_hack=True,
)
instance._proxies[self.service_type]._connection = instance
return instance._proxies[self.service_type]
def __set__(self, instance, value):