]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove duplicate keys from dictionary
authorankitagrawal <ankit11.agrawal@nttdata.com>
Tue, 22 Sep 2015 13:01:19 +0000 (06:01 -0700)
committerankitagrawal <ankit11.agrawal@nttdata.com>
Wed, 23 Sep 2015 05:49:26 +0000 (22:49 -0700)
There are few places where duplicate keys are added in the dictionary.
Removed all such occurrences throughout the code.

TrivialFix

Change-Id: I5db553d4d9f161b513520c87b6ad17b7ca6a0782

cinder/tests/unit/test_huawei_drivers.py
cinder/tests/unit/volume/drivers/netapp/dataontap/test_nfs_cmode.py

index 9794c4b93433e7b3b8264eee1c5266796e07c929..ba4cd48dfc1c3c2166fb388b501a2154dfd58ba7 100644 (file)
@@ -84,7 +84,6 @@ test_snap = {'name': 'volume-21ec7341-9256-497b-97d9-ef48edcf0635',
              'display_description': 'test volume',
              'volume_type_id': None,
              'provider_location': '11',
-             'volume': {"volume_id": '21ec7341-9256-497b-97d9-ef48edcf0635'},
              'volume': {'provider_location': '12'},
              }
 
index 0614b83a8863929d62231d53086d46639f5b9981..fb9dd7c374ab816244926a0ab3fac607faecc102 100644 (file)
@@ -154,7 +154,6 @@ class NetAppCmodeNfsDriverTestCase(test.TestCase):
                      'netapp_raid_type': 'raiddp',
                      'netapp_disk_type': 'SSD',
                      'netapp_nodedup': 'true',
-                     'reserved_percentage': 7,
                      'max_over_subscription_ratio': 19.0,
                      'provisioned_capacity_gb': 4456.0}]