@@ -2912,10 +2912,10 @@ def take_action(self, parsed_args):
29122912 for image_id in image_ids :
29132913 try :
29142914 images [image_id ] = image_client .get_image (image_id )
2915- except Exception :
2915+ except Exception : # noqa: S110
29162916 # retrieving image names is not crucial, so we swallow
29172917 # any exceptions
2918- pass # nosec: B110
2918+ pass
29192919 else :
29202920 try :
29212921 # some deployments can have *loads* of images so we only
@@ -2933,10 +2933,10 @@ def take_action(self, parsed_args):
29332933 )
29342934 for i in images_list :
29352935 images [i .id ] = i
2936- except Exception :
2936+ except Exception : # noqa: S110
29372937 # retrieving image names is not crucial, so we swallow any
29382938 # exceptions
2939- pass # nosec: B110
2939+ pass
29402940
29412941 # create a dict that maps flavor_id to flavor object, which is used
29422942 # to display the "Flavor Name" column. Note that 'flavor.id' is not
@@ -2952,19 +2952,19 @@ def take_action(self, parsed_args):
29522952 flavors [f_id ] = compute_client .find_flavor (
29532953 f_id , ignore_missing = False
29542954 )
2955- except Exception :
2955+ except Exception : # noqa: S110
29562956 # retrieving flavor names is not crucial, so we swallow
29572957 # any exceptions
2958- pass # nosec: B110
2958+ pass
29592959 else :
29602960 try :
29612961 flavors_list = compute_client .flavors (is_public = None )
29622962 for i in flavors_list :
29632963 flavors [i .id ] = i
2964- except Exception :
2964+ except Exception : # noqa: S110
29652965 # retrieving flavor names is not crucial, so we swallow any
29662966 # exceptions
2967- pass # nosec: B110
2967+ pass
29682968
29692969 # Populate image_name, image_id, flavor_name and flavor_id attributes
29702970 # of server objects so that we can display those columns.
@@ -4869,7 +4869,7 @@ def take_action(self, parsed_args):
48694869 LOG .debug (f"ssh command: { cmd } " )
48704870 # we intentionally pass through user-provided arguments and run this in
48714871 # the user's shell
4872- os .system (cmd ) # nosec: B605
4872+ os .system (cmd ) # noqa: S605
48734873
48744874
48754875class StartServer (command .Command ):
0 commit comments