def deletesubnets(stack_id, ddb_t):
""" Delete any subnets in the DB for a stack"""
try:
response = ddb_t.scan(
FilterExpression=Attr('StackId').eq(stack_id)
)
for item in response['Items']:
print item
ddb_t.delete_item(Key={'Cidr' : item['Cidr']})
except Exception:
pass
autosubnet.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录