fixed updating of hugepage flavors 91/21191/1
authorjuraj.linkes <jlinkes@cisco.com>
Thu, 15 Sep 2016 14:11:40 +0000 (16:11 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Thu, 15 Sep 2016 14:20:52 +0000 (14:20 +0000)
Change-Id: I5719aef5d5334584337858cf5fee3ef024c0eaac
Signed-off-by: juraj.linkes <jlinkes@cisco.com>
(cherry picked from commit 758ef5ddb78f8b5a948189f398daa7d4457b9f1d)

utils/openstack_utils.py

index 8c2e00c..c53e631 100755 (executable)
@@ -239,7 +239,7 @@ def create_flavor(nova_client, flavor_name, ram, disk, vcpus):
         try:
             extra_specs = ft_utils.get_functest_config(
                 'general.flavor_extra_specs')
-            flavor.update(extra_specs)
+            flavor.set_keys(extra_specs)
         except ValueError:
             # flavor extra specs are not configured, therefore skip the update
             pass