in Python3, dict.items() returns a view instead of an instance of list,
so we have to materialize the view for changing the dict being iterated.
Signed-off-by: Kefu Chai <kchai@redhat.com>
'/home/{local}/s3tests.teuth.config.yaml'.format(local=local_user))
log.debug("S3 Tests Java: s3tests_conf is {s3cfg}".format(
s3cfg=s3tests_conf))
- for section, user in self.users.items():
+ for section, user in list(self.users.items()):
if section in s3tests_conf:
s3_user_id = '{user}.{client}'.format(
user=user, client=client)