New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unaccessible variable self.attrs in Tracker #148
Conversation
| @@ -76,6 +76,7 @@ def __init__(self, default_version=None): | |||
| self.api = api | |||
| self.default_version = default_version or API_VERSION | |||
| self._dn = None | |||
| self.attrs = None | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you point me to an instance of some method or test accessing the attributes? I think an empty dictionary would be more appropriate here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
|
NACK, comments inline. |
|
You're right, empty dict is more applicable here. I will close that one and open new with suggested fix. |
|
That's not how pull requests work. You should change the commit and force push it to the branch instead. |
|
You can check last step in this howto http://www.freeipa.org/page/Pull_request_on_Github |
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
|
Thank you, ack. |
|
Fixed upstream |
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