File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ class Importer:
15
15
targetted (List[Resource]): A list of Resource objects to be managed.
16
16
17
17
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.
19
19
targetted (List[Resource]): A list of Resource objects to be managed.
20
20
21
21
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 .
23
23
ImporterConfigError: If the targetted list is empty.
24
24
25
25
Methods:
@@ -30,12 +30,12 @@ class Importer:
30
30
targetted : list [Resource ] = None
31
31
def __init__ (
32
32
self ,
33
- client : jamfpy .JamfTenant ,
33
+ client : jamfpy .Tenant ,
34
34
targetted : List [Resource ],
35
35
debug : bool = False
36
36
):
37
37
38
- assert isinstance (client , jamfpy .JamfTenant ), "incorrect client type"
38
+ assert isinstance (client , jamfpy .Tenant ), "incorrect client type"
39
39
40
40
if len (targetted ) == 0 :
41
41
raise ImporterConfigError ("no targets set" )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def __init__(
21
21
self ,
22
22
options : Options = None ,
23
23
validate : bool = True ,
24
- client : jamfpy .JamfTenant = None ,
24
+ client : jamfpy .Tenant = None ,
25
25
debug : bool = False ,
26
26
exclude : list [int ] = None
27
27
):
@@ -130,11 +130,11 @@ def set_debug(self, debug: bool):
130
130
self .lg .info ("log level has been overridden to: %s" , self .lg .level )
131
131
132
132
133
- def set_client (self , client : jamfpy .JamfTenant , refresh_data : bool = False ):
133
+ def set_client (self , client : jamfpy .Tenant , refresh_data : bool = False ):
134
134
"""function to wrap setting of object bound client"""
135
135
self .lg .debug ("setting client..." )
136
136
137
- assert isinstance (client , jamfpy .JamfTenant ), "invalid client type"
137
+ assert isinstance (client , jamfpy .Tenant ), "invalid client type"
138
138
self .lg .debug ("client type is correct" )
139
139
140
140
self .client = client
You can’t perform that action at this time.
0 commit comments