in ws_setup.py [0:0]
def setup_security_groups(self):
try:
ec2 = boto3.client('ec2')
result = [group["GroupId"] for group in ec2.describe_security_groups()['SecurityGroups'] \
if 'VpcId' in group and group["GroupName"] == "default" and group["VpcId"] == self.settings["vpc"]]
except Exception as e:
errlog("Exception : %s" % str(e))
return None
return result