bonclay7 / aws-amicleaner

Cleanup your old unused ami and related snapshots
MIT License
362 stars 132 forks source link

Snapshot IDs with value of 'None' cause error #74

Closed rickhlx closed 5 years ago

rickhlx commented 6 years ago

Invalid type for parameter SnapshotId, value: None, type: <type 'NoneType'>, valid types: <type 'basestring'> in function remove_amis

Ami Snapshots:

{'volume_size': 80, 'snapshot_id': 'snap-xxxxx', 'encrypted': True, 'volume_type': 'gp2', 'device_name': '/dev/sda1'}
snap-xxxx deleted
{'volume_size': 80, 'snapshot_id': None, 'encrypted': True, 'volume_type': 'gp2', 'device_name': 'xvdb'}
Invalid type for parameter SnapshotId, value: None, type: <type 'NoneType'>, valid types: <type 'basestring'>