Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This repository was archived by the owner on May 28, 2025. It is now read-only.

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

@pboushy

Description

@pboushy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions