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

Error with forcerun on 0.6.0 #39

Closed
mans0954 opened this issue Mar 30, 2020 · 3 comments · Fixed by #40
Closed

Error with forcerun on 0.6.0 #39

mans0954 opened this issue Mar 30, 2020 · 3 comments · Fixed by #40

Comments

@mans0954
Copy link
Contributor

Hello,we've been using automated-ebs-snapshots successfully for some time. Tried the new 0.6.0 version out this morning with the usual arguments and get the following error:

automated-ebs-snapshots --access-key-id=**** --secret-access-key=**** --region=us-east-1 --run
2020-03-30 13:08:52,608 - auto-ebs - INFO - Connecting to AWS EC2 in us-east-1
2020-03-30 13:08:53,005 - auto-ebs - INFO - The newest snapshot for vol-**** is 4330 seconds old
2020-03-30 13:08:53,005 - auto-ebs - INFO - No need for a new snapshot of vol-****
2020-03-30 13:08:53,052 - auto-ebs - INFO - No old snapshots to remove
Traceback (most recent call last):
  File "/usr/local/bin/automated-ebs-snapshots", line 29, in <module>
    automated_ebs_snapshots.main()
  File "/usr/local/lib/python2.7/site-packages/automated_ebs_snapshots/__init__.py", line 173, in main
    if args.forcerun:
AttributeError: 'Namespace' object has no attribute 'forcerun'

This seems to be an issue with argparse, but I don't know how to work around it?

Thanks,

Christopher

@mans0954
Copy link
Contributor Author

This is with Python 2.7 by the way. Am I right in thinking that automated-ebs-snapshots doesn't support Python 3 yet?

@mans0954
Copy link
Contributor Author

I think I see what the problem is. forcerun needs to be force_run in line 173.

@mans0954
Copy link
Contributor Author

Closed by #40

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 a pull request may close this issue.

1 participant