Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed typos.

  • Loading branch information...
commit 775d6c7887400d31384271ee2d6b8a69205d9a47 1 parent 9d03b17
@walsh159 walsh159 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 boto/ec2/connection.py
View
4 boto/ec2/connection.py
@@ -1312,7 +1312,7 @@ def create_snapshot(self, volume_id, description=None):
if description:
params['Description'] = description[0:255]
snapshot = self.get_object('CreateSnapshot', params, Snapshot)
- volume = this.get_all_volumes([volume_id])[0]
+ volume = self.get_all_volumes([volume_id])[0]
volume_name = volume.tags.get('Name')
if volume_name:
snapshot.add_tag('Name', volume_name)
@@ -1428,7 +1428,7 @@ def trim_snapshots(self, hourly_backups = 8, daily_backups = 7, weekly_backups =
if snap_found_for_this_time_period == True:
if not snap.tags.get('preserve_snapshot'):
# as long as the snapshot wasn't marked with the 'preserve_snapshot' tag, delete it:
- this.delete_snapshot(snap)
+ self.delete_snapshot(snap.id)
boto.log.info('Trimmed snapshot %s (%s)' % (snap.tags['Name'], snap.start_time))
# go on and look at the next snapshot, leaving the time period alone
else:
Please sign in to comment.
Something went wrong with that request. Please try again.