Skip to content

Commit

Permalink
set encrypted flag to None for root device
Browse files Browse the repository at this point in the history
"AWS API doesn't support any value for this flag for the root device of
a new instance"

see: boto#2587

closes gh-455
  • Loading branch information
jtriley committed Nov 3, 2014
1 parent 89cd84e commit 203e5f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions starcluster/awsutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,10 @@ def request_instances(self, image_id, price=None, instance_type='m1.small',
# mapping when you dont own the AMI causes an error on launch
root.snapshot_id = None
root.delete_on_termination = True
# AWS API doesn't support any value for this flag for the root
# device of a new instance (see: boto#2587)
if hasattr(root, 'encrypted'):
root.encrypted = None
bdmap[img.root_device_name] = root
block_device_map = bdmap
shared_kwargs = dict(instance_type=instance_type,
Expand Down

0 comments on commit 203e5f9

Please sign in to comment.