@@ -2915,10 +2915,10 @@ def take_action(self, parsed_args):
29152915 for image_id in image_ids :
29162916 try :
29172917 images [image_id ] = image_client .get_image (image_id )
2918- except Exception :
2918+ except Exception : # noqa: S110
29192919 # retrieving image names is not crucial, so we swallow
29202920 # any exceptions
2921- pass # nosec: B110
2921+ pass
29222922 else :
29232923 try :
29242924 # some deployments can have *loads* of images so we only
@@ -2936,10 +2936,10 @@ def take_action(self, parsed_args):
29362936 )
29372937 for i in images_list :
29382938 images [i .id ] = i
2939- except Exception :
2939+ except Exception : # noqa: S110
29402940 # retrieving image names is not crucial, so we swallow any
29412941 # exceptions
2942- pass # nosec: B110
2942+ pass
29432943
29442944 # create a dict that maps flavor_id to flavor object, which is used
29452945 # to display the "Flavor Name" column. Note that 'flavor.id' is not
@@ -2955,19 +2955,19 @@ def take_action(self, parsed_args):
29552955 flavors [f_id ] = compute_client .find_flavor (
29562956 f_id , ignore_missing = False
29572957 )
2958- except Exception :
2958+ except Exception : # noqa: S110
29592959 # retrieving flavor names is not crucial, so we swallow
29602960 # any exceptions
2961- pass # nosec: B110
2961+ pass
29622962 else :
29632963 try :
29642964 flavors_list = compute_client .flavors (is_public = None )
29652965 for i in flavors_list :
29662966 flavors [i .id ] = i
2967- except Exception :
2967+ except Exception : # noqa: S110
29682968 # retrieving flavor names is not crucial, so we swallow any
29692969 # exceptions
2970- pass # nosec: B110
2970+ pass
29712971
29722972 # Populate image_name, image_id, flavor_name and flavor_id attributes
29732973 # of server objects so that we can display those columns.
@@ -4872,7 +4872,7 @@ def take_action(self, parsed_args):
48724872 LOG .debug (f"ssh command: { cmd } " )
48734873 # we intentionally pass through user-provided arguments and run this in
48744874 # the user's shell
4875- os .system (cmd ) # nosec: B605
4875+ os .system (cmd ) # noqa: S605
48764876
48774877
48784878class StartServer (command .Command ):
0 commit comments