Skip to content

Commit

Permalink
Merge pull request #418 from TeneBrae93/master
Browse files Browse the repository at this point in the history
Fix an error in ebs__download_snapshots
  • Loading branch information
DaveYesland authored May 2, 2024
2 parents 7ff8ba9 + 967200a commit 628ee3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pacu/modules/ebs__download_snapshots/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"""Module for ebs_snapshot_explorer"""
import argparse
import sys
import os
from typing import List
from typing_extensions import TypedDict

Expand Down Expand Up @@ -79,6 +80,9 @@ def main(args, pacu: Main):

try:
out_dir = downloads_dir()/'ebs/snapshots'
# Check if the directory exists, create if not
if not os.path.exists(out_dir):
os.makedirs(out_dir)
snap = snapshot.LocalSnapshot(str(out_dir), snapshot_id, pacu.get_boto_session(region=region), pacu.get_botocore_conf())
except UserWarning as e:
print(*e.args)
Expand Down

0 comments on commit 628ee3a

Please sign in to comment.