Skip to content

Commit

Permalink
crypto_attach: Fixed issue with set/dict
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Maier <maiera@de.ibm.com>
  • Loading branch information
andy-maier committed Nov 11, 2020
1 parent 9dc552c commit ee9c800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zhmc_ansible_modules/zhmc_crypto_attachment.py
Expand Up @@ -426,7 +426,7 @@ def ensure_attached(params, check_mode):
raise Error("No crypto adapters of type {!r} found on CPC {!r} ".
format(crypto_type, cpc_name))

all_adapters_dict = {(a.name, a) for a in all_adapters}
all_adapters_dict = {a.name: a for a in all_adapters}

# All crypto adapters in a CPC have the same number of domains
# (otherwise the concept of attaching domains across all attached
Expand Down

0 comments on commit ee9c800

Please sign in to comment.