diff options
author | Toby Burress <kurin@delete.org> | 2013-07-29 22:52:46 -0400 |
---|---|---|
committer | Toby Burress <kurin@delete.org> | 2013-07-29 22:52:46 -0400 |
commit | 69eb1911b2c6383036b6ecd6d434cea884205cf7 (patch) | |
tree | c40ccea17c88a4085b10f5d5f4801ee053918ae4 | |
parent | d2536159bad8d07656bb742c94a9e15e13ab2520 (diff) | |
download | boto-69eb1911b2c6383036b6ecd6d434cea884205cf7.tar.gz |
Avoid hash randomization here, too.
Use an OrderedDict because we may want items coming out in the same
order they went in.
-rw-r--r-- | boto/ec2/blockdevicemapping.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/boto/ec2/blockdevicemapping.py b/boto/ec2/blockdevicemapping.py index df774ae9..c3a2713b 100644 --- a/boto/ec2/blockdevicemapping.py +++ b/boto/ec2/blockdevicemapping.py @@ -81,8 +81,12 @@ class BlockDeviceType(object): # for backwards compatibility EBSBlockDeviceType = BlockDeviceType +try: + from collections import OrdereDict as bdm_dict +except ImportError: + bdm_dict = dict -class BlockDeviceMapping(dict): +class BlockDeviceMapping(bdm_dict): """ Represents a collection of BlockDeviceTypes when creating ec2 instances. |