Unaccessible variable self.attrs in Tracker

In tracker, 'self.attrs' variable is created and filled in track_create method.
Some objects are not created but still require access to this variable.
Created 'self.attrs' variable in init

https://fedorahosted.org/freeipa/ticket/6125

Reviewed-By: Milan Kubik <mkubik@redhat.com>
This commit is contained in:
Ganna Kaihorodova 2016-10-10 14:00:51 +02:00 committed by Martin Basti
parent d650c54fe4
commit 9b0b970733

View File

@ -76,6 +76,7 @@ class Tracker(object):
self.api = api self.api = api
self.default_version = default_version or API_VERSION self.default_version = default_version or API_VERSION
self._dn = None self._dn = None
self.attrs = {}
self.exists = False self.exists = False