Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

gkaihorodova
Copy link
Contributor

@gkaihorodova gkaihorodova commented Oct 10, 2016

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

@@ -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
Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@apophys apophys self-assigned this Oct 10, 2016
@apophys
Copy link
Contributor

apophys commented Oct 10, 2016

NACK, comments inline.

@gkaihorodova
Copy link
Contributor Author

You're right, empty dict is more applicable here. I will close that one and open new with suggested fix.

@stlaz
Copy link
Contributor

stlaz commented Oct 11, 2016

That's not how pull requests work. You should change the commit and force push it to the branch instead.

@stlaz stlaz reopened this Oct 11, 2016
@MartinBasti
Copy link
Contributor

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
@apophys
Copy link
Contributor

apophys commented Oct 21, 2016

Thank you, ack.

@apophys apophys added the ack Pull Request approved, can be merged label Oct 21, 2016
@MartinBasti
Copy link
Contributor

@MartinBasti MartinBasti added the pushed Pull Request has already been pushed label Oct 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
4 participants