deploy.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:ardy 作者: avara1986 项目源码 文件源码
def remote_get_lambda(self, **kwargs):
        response = False
        try:
            response = self.awslambda.get_function(
                FunctionName=kwargs["FunctionName"],
            )
            tags = response.get("Tags", False)
            if tags:
                response["Configuration"]["Tags"] = tags
        except ClientError as e:
            if e.response['Error']['Code'] == "ResourceNotFoundException":
                return False
            else:
                # TODO: handle other errors there
                pass
        return response
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号