rds.py 文件源码

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

项目:ansible_mysql_rds_playbook 作者: codingenesis 项目源码 文件源码
def get_db_snapshot(self, snapshotid):
        try:
            snapshots = self.connection.describe_db_snapshots(db_snapshot_identifier=snapshotid, snapshot_type='manual')['DescribeDBSnapshotsResponse']['DescribeDBSnapshotsResult']['DBSnapshots']
            result = RDS2Snapshot(snapshots[0])
            return result
        except boto.rds2.exceptions.DBSnapshotNotFound, e:
            return None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号