def setup_subnets()

in ws_setup.py [0:0]


    def setup_subnets(self):
        try:
            ec2 = boto3.client('ec2')
            result = [subnet["SubnetId"] for subnet in ec2.describe_subnets()["Subnets"] \
                      if subnet["VpcId"] == self.settings["vpc"] and subnet['DefaultForAz']==True]
        except Exception as e:
            errlog("Exception : %s" % str(e))
            return None
            
        return result