Skip to content

Commit

Permalink
setconfig.py rename jamf to python_jamf
Browse files Browse the repository at this point in the history
  • Loading branch information
James Reynolds committed Jan 22, 2024
1 parent 46909b9 commit 1d19b29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python_jamf/setconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def parse(self, argv):

def test(config_path):
try:
api = jamf.API(config_path=config_path)
except jamf.exceptions.JamfConfigError:
api = python_jamf.API(config_path=config_path)
except python_jamf.exceptions.JamfConfigError:
sys.stderr.write("Could not read config preferences, have you set them yet?\n")
exit(1)
try:
Expand All @@ -86,7 +86,7 @@ def test(config_path):
def print_config(config_path):
try:
conf = python_jamf.config.Config(prompt=False, config_path=config_path)
except jamf.exceptions.JamfConfigError:
except python_jamf.exceptions.JamfConfigError:
sys.stderr.write("Could not read config preferences, have you set them yet?\n")
exit(1)
print(conf.config_path)
Expand All @@ -99,7 +99,7 @@ def print_config(config_path):


def revoke_token(config_path):
api = jamf.API(config_path=config_path)
api = python_jamf.API(config_path=config_path)
api.revoke_token()


Expand Down

0 comments on commit 1d19b29

Please sign in to comment.