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

Incorrectly showing DP name as "<NO NAME CONFIGURED>" #102

Open
pboushy opened this issue Jul 10, 2020 · 0 comments
Open

Incorrectly showing DP name as "<NO NAME CONFIGURED>" #102

pboushy opened this issue Jul 10, 2020 · 0 comments

Comments

@pboushy
Copy link

pboushy commented Jul 10, 2020

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.

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()?

Or is there something else going on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant