Skip to content

Commit

Permalink
Simplify expression
Browse files Browse the repository at this point in the history
  • Loading branch information
ryarnyah committed Jun 29, 2021
1 parent 0fe5025 commit cb9137b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module_utils/kafka_lib_commons.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def get_manager_from_params(params):

api_version = tuple(
int(p) for p in params['api_version'].strip(".").split(".")
) if 'api_version' in params and params['api_version'] else None
) if params.get('api_version') else None

kafka_ssl_files = generate_ssl_object(
ssl_cafile, ssl_certfile, ssl_keyfile, ssl_crlfile
Expand Down

0 comments on commit cb9137b

Please sign in to comment.