mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 00:35:50 +02:00
Use in dict rather than "in dict.keys()". Fix linting warnings about "not in". (#8298)
* Fixed a few linting warnings for if not x in y. These should have been caught by pylint, but weren't. * Replaced "x in y.keys()" with "x in y". It's much faster, and more Pythonic.
This commit is contained in:
@@ -322,7 +322,7 @@ def create_client_instance(ec2_client, target, security_group_id, subnet_id):
|
||||
else:
|
||||
# 32 bit systems
|
||||
machine_type = 'c1.medium'
|
||||
if 'userdata' in target.keys():
|
||||
if 'userdata' in target:
|
||||
userdata = target['userdata']
|
||||
else:
|
||||
userdata = ''
|
||||
|
||||
Reference in New Issue
Block a user