Skip to content

Commit e42192a

Browse files
committed
fix SIM118 in-dict-keys
Signed-off-by: Gaëtan Lehmann <[email protected]>
1 parent f092cda commit e42192a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def install_custom_uefi_certs(self, auths):
264264
assert 'db' in auths_dict
265265

266266
logging.info('Installing auths to pool: %s' % list(auths_dict.keys()))
267-
for key in auths_dict.keys():
267+
for key in auths_dict:
268268
value = host.ssh([f'md5sum {auths_dict[key]} | cut -d " " -f 1'])
269269
logging.debug('Key: %s, value: %s' % (key, value))
270270
params = [auths_dict['PK'], auths_dict['KEK'], auths_dict['db']]

tests/install/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def skip_package_source(version, package_source):
2929
if package_source == "net":
3030
# Net install is not valid if there is no netinstall URL
3131
# FIXME: ISO includes a default URL so we should be able to omit net-url
32-
if 'net-url' not in ISO_IMAGES[version].keys():
32+
if 'net-url' not in ISO_IMAGES[version]:
3333
return True, "net-url required for netinstall was not found for {}".format(version)
3434

3535
return False, "do not skip"

0 commit comments

Comments
 (0)