We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was setting up python-jss by running it the first name and noticed that the distribution point names are showing as ""
I debugged in VS Code and discovered that dpt.get("name") is returning None when it should be returning the DP's name.
dpt.get("name")
None
Different value checks I did and the results:
dpt.get("name") # None hasattr(dpt, "name") # True dpt.name # "dp.example.com"
I think dpt is an object not a dictionary, so it should probably be using getattr(object, attr, default_value) instead of object.get()?
dpt
getattr(object, attr, default_value)
object.get()
Or is there something else going on?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was setting up python-jss by running it the first name and noticed that the distribution point names are showing as ""
I debugged in VS Code and discovered that
dpt.get("name")
is returningNone
when it should be returning the DP's name.Different value checks I did and the results:
I think
dpt
is an object not a dictionary, so it should probably be usinggetattr(object, attr, default_value)
instead ofobject.get()
?Or is there something else going on?
The text was updated successfully, but these errors were encountered: