@@ -328,7 +328,7 @@ def impersonate_service_accounts(
328
328
329
329
# trying to impersonate SAs within project
330
330
if impers is not None and impers .get ('impersonate' , False ) is True :
331
- logging .info (f 'Looking for impersonation options in { project_id } ' )
331
+ logging .info ('Looking for impersonation options in %s' , project_id )
332
332
iam_client = iam_client_for_credentials (credentials )
333
333
if is_set (scan_config , 'iam_policy' ) is False :
334
334
iam_policy = CrawlerFactory .create_crawler ('iam_policy' ).crawl (
@@ -570,13 +570,14 @@ def main():
570
570
(
571
571
item
572
572
for item in project_list
573
- if item [" projectId" ] == force_project_id
573
+ if item [' projectId' ] == force_project_id
574
574
),
575
575
None ,
576
576
)
577
577
is not None
578
578
):
579
- logging .info (f"The project { force_project_id } is already in the list" )
579
+ logging .info ('The project %s is already in the list' ,
580
+ force_project_id )
580
581
continue
581
582
res = CrawlerFactory .create_crawler (
582
583
'project_info' ,
@@ -624,7 +625,7 @@ def main():
624
625
625
626
# See i#267 on why we use the native threading approach here.
626
627
for i , project_obj in enumerate (project_queue ):
627
- logging .info ('Finished %d projects out of %d' % ( i , len (project_queue ) - 1 ) )
628
+ logging .info ('Finished %d projects out of %d' , i , len (project_queue ) - 1 )
628
629
sync_t = threading .Thread (target = scanner .get_resources , args = (project_obj ,))
629
630
sync_t .daemon = True
630
631
sync_t .start ()
0 commit comments