Преглед изворни кода

Fixed output to include SG ID.

Fred Damstra пре 9 година
родитељ
комит
1e46f6c9a5
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      FindSecurityGroupInProfile.py

+ 2 - 2
FindSecurityGroupInProfile.py

@@ -70,7 +70,7 @@ for region in regions:
 			print("FOUND in profile '" + PROFILE + "', Region: '" + region + "': ID=" + str(sg['SecurityGroups'][0]['GroupId']))
 		if FOUND > 1:
 			FOUNDSTR = FOUNDSTR + "\n"
-		FOUNDSTR = FOUNDSTR + "FOUND in profile '" + PROFILE + "', Region: '" + region
+		FOUNDSTR = FOUNDSTR + "FOUND in profile '" + PROFILE + "', Region: '" + region + "'; ID=" + str(sg['SecurityGroups'][0]['GroupId'])
 		continue
 	except botocore.exceptions.ClientError as e:
 		if DEBUG >= 2:
@@ -92,7 +92,7 @@ for region in regions:
 				print("FOUND in profile '" + PROFILE + "', Region: '" + region + "': ID=" + str(sg['SecurityGroups'][0]['GroupId']))
 			if FOUND > 1:
 				FOUNDSTR = FOUNDSTR + "\n"
-			FOUNDSTR = FOUNDSTR + "FOUND in profile '" + PROFILE + "', Region: '" + region
+		        FOUNDSTR = FOUNDSTR + "FOUND in profile '" + PROFILE + "', Region: '" + region + "'; ID=" + str(sg['SecurityGroups'][0]['GroupId'])
 			continue
 	except IndexError:
 		if DEBUG >= 2: