Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an error in ebs__download_snapshots #418

Merged
merged 1 commit into from
May 2, 2024
Merged

Fix an error in ebs__download_snapshots #418

merged 1 commit into from
May 2, 2024

Conversation

TeneBrae93
Copy link
Contributor

When running ebs__download_snapshots the user will encounter an error because the output directory is not created yet. This fix will check if the directory exists and if not, create the directory allowing the command to succeed.

Current error message:

    <class 'FileNotFoundError'>: [Errno 2] No such file or directory: '/home/[user]/.local/share/pacu/[aws-user]/downloads/ebs/snapshots/snap-0c241b0d00d234853.img'```

- Fix an error in ebs__download_snapshots
By default, the output directory does not exist and the command will fail unless the user manually creates the directory. This fixes the issue by checking if the directory exists. If it does not, it will create it.
@DaveYesland DaveYesland merged commit 628ee3a into RhinoSecurityLabs:master May 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants