Skip to content

Commit 975cc9b

Browse files
committed
updated to support latest jamfpy
1 parent e83d172 commit 975cc9b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

jamftf/importer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ class Importer:
1515
targetted (List[Resource]): A list of Resource objects to be managed.
1616
1717
Args:
18-
client (jamfpy.JamfTenant): The Jamf tenant client used for API interactions.
18+
client (jamfpy.Tenant): The Jamf tenant client used for API interactions.
1919
targetted (List[Resource]): A list of Resource objects to be managed.
2020
2121
Raises:
22-
AssertionError: If the provided client is not an instance of jamfpy.JamfTenant.
22+
AssertionError: If the provided client is not an instance of jamfpy.Tenant.
2323
ImporterConfigError: If the targetted list is empty.
2424
2525
Methods:
@@ -30,12 +30,12 @@ class Importer:
3030
targetted: list[Resource] = None
3131
def __init__(
3232
self,
33-
client: jamfpy.JamfTenant,
33+
client: jamfpy.Tenant,
3434
targetted: List[Resource],
3535
debug: bool = False
3636
):
3737

38-
assert isinstance(client, jamfpy.JamfTenant), "incorrect client type"
38+
assert isinstance(client, jamfpy.Tenant), "incorrect client type"
3939

4040
if len(targetted) == 0:
4141
raise ImporterConfigError("no targets set")

jamftf/resources.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(
2121
self,
2222
options: Options = None,
2323
validate: bool = True,
24-
client: jamfpy.JamfTenant = None,
24+
client: jamfpy.Tenant = None,
2525
debug: bool = False,
2626
exclude: list[int] = None
2727
):
@@ -130,11 +130,11 @@ def set_debug(self, debug: bool):
130130
self.lg.info("log level has been overridden to: %s", self.lg.level)
131131

132132

133-
def set_client(self, client: jamfpy.JamfTenant, refresh_data: bool = False):
133+
def set_client(self, client: jamfpy.Tenant, refresh_data: bool = False):
134134
"""function to wrap setting of object bound client"""
135135
self.lg.debug("setting client...")
136136

137-
assert isinstance(client, jamfpy.JamfTenant), "invalid client type"
137+
assert isinstance(client, jamfpy.Tenant), "invalid client type"
138138
self.lg.debug("client type is correct")
139139

140140
self.client = client

0 commit comments

Comments
 (0)