@@ -234,7 +234,10 @@ def alter_resource_class(
234
234
def extract_resource_class (self , class_name : str ) -> Union [dict , bytes ]:
235
235
"""Extract the attributes of a general resource class."""
236
236
profile = self .extract (
237
- resource = class_name , class_name = "CDT" , segments = ["cdtinfo" ], profile_only = True
237
+ resource = class_name ,
238
+ class_name = "CDT" ,
239
+ segments = ["cdtinfo" ],
240
+ profile_only = True ,
238
241
)
239
242
return profile ["cdtinfo" ]
240
243
@@ -262,7 +265,10 @@ def alter_started_task(
262
265
def extract_started_task (self , started_task_name : str ) -> Union [dict , bytes ]:
263
266
"""Extract the attributes of a started task profile."""
264
267
profile = self .extract (
265
- resource = started_task_name , class_name = "STARTED" , segments = ["stdata" ], profile_only = True
268
+ resource = started_task_name ,
269
+ class_name = "STARTED" ,
270
+ segments = ["stdata" ],
271
+ profile_only = True ,
266
272
)
267
273
return profile ["stdata" ]
268
274
@@ -295,7 +301,10 @@ def extract_custom_field(
295
301
"""Extract the attributes of a custom field."""
296
302
full_profile_name = f"{ custom_field_type } .csdata.{ custom_field_name } "
297
303
profile = self .extract (
298
- resource = full_profile_name , class_name = "CFIELD" , segments = ["cfdef" ], profile_only = True
304
+ resource = full_profile_name ,
305
+ class_name = "CFIELD" ,
306
+ segments = ["cfdef" ],
307
+ profile_only = True ,
299
308
)
300
309
return profile ["cfdef" ]
301
310
@@ -326,7 +335,10 @@ def alter_kerberos_realm(
326
335
def extract_kerberos_realm (self , kerberos_realm_name : str ) -> Union [dict , bytes ]:
327
336
"""Extract the attributes of a kerberos realm profile."""
328
337
profile = self .extract (
329
- resource = kerberos_realm_name , class_name = "REALM" , segments = ["kerb" ], profile_only = True
338
+ resource = kerberos_realm_name ,
339
+ class_name = "REALM" ,
340
+ segments = ["kerb" ],
341
+ profile_only = True ,
330
342
)
331
343
return profile ["kerb" ]
332
344
@@ -362,7 +374,10 @@ def alter_signed_program(
362
374
def extract_signed_program (self , signed_program_name : str ) -> Union [dict , bytes ]:
363
375
"""Extract the attributes of a signed program profile."""
364
376
profile = self .extract (
365
- resource = signed_program_name , class_name = "PROGRAM" , segments = ["sigver" ], profile_only = True
377
+ resource = signed_program_name ,
378
+ class_name = "PROGRAM" ,
379
+ segments = ["sigver" ],
380
+ profile_only = True ,
366
381
)
367
382
profile ["sigver" ]["library" ] = profile ["base" ].get ("member" )
368
383
return profile ["sigver" ]
@@ -396,7 +411,10 @@ def extract_appc_session(
396
411
"""Extract the attributes of a APPC session profile."""
397
412
full_profile_name = f"{ net_id } .{ local_lu } .{ partner_lu } "
398
413
profile = self .extract (
399
- resource = full_profile_name , class_name = "APPCLU" , segments = ["session" ], profile_only = True
414
+ resource = full_profile_name ,
415
+ class_name = "APPCLU" ,
416
+ segments = ["session" ],
417
+ profile_only = True ,
400
418
)
401
419
return profile ["session" ]
402
420
0 commit comments