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.

Using own preferences file doesn't work if the file doesn't exist #71

@geoffklee

Description

@geoffklee

Perhaps this is the intended behaviour, but if I call JSSPrefs() with my own (non-existent) plist file as preferences_file argument, I'd expect it to act the same way as it does in the default case, and ask me for the information needed to create the file.

Instead, it throws an exception if the file isn't found. Is this intended? It's these lines:

https://github.com/sheagcraig/python-jss/blob/e1982466bd7e971f27525cbc31024590a456df66/jss/jss_prefs.py#L110-L112

I also suspect that the call to self.init() at the bottom of init() should include self.preferences_file as the preferences_file argument:

https://github.com/sheagcraig/python-jss/blob/e1982466bd7e971f27525cbc31024590a456df66/jss/jss_prefs.py#L132

Otherwise it tries to read the default plist. Am I missing something?

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