]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/keystone.py: use list(a_dict) for concatenating lists
authorKefu Chai <kchai@redhat.com>
Mon, 6 Apr 2020 05:25:54 +0000 (13:25 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 7 Apr 2020 13:51:23 +0000 (21:51 +0800)
`dict.items()` does not return a list in python3, so we need to convert
it to a list first.

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/keystone.py

index 4ef4707c5cd0b7eb398f5d19d66d90408a6af46c..88abd7b978013d09e29e3dfe01425977a304b0c6 100644 (file)
@@ -292,7 +292,7 @@ def run_section_cmds(ctx, cclient, section_cmd, special,
     for section_item in section_config_list:
         run_in_keystone_venv(ctx, cclient,
             [ 'openstack' ] + section_cmd.split() +
-            dict_to_args(special, auth_section + section_item.items()) +
+            dict_to_args(special, auth_section + list(section_item.items())) +
             [ '--debug' ])
 
 def create_endpoint(ctx, cclient, service, url, adminurl=None):