diff options
author | Tim Rupp <caphrim007@gmail.com> | 2016-12-13 15:54:46 -0800 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2016-12-14 10:16:37 -0800 |
commit | 17eebf2b4f1b45c99b3eeeb149e3c8659de36c98 (patch) | |
tree | eb6c8c01c60e99767341d14e2c61ec7e334d11c5 | |
parent | 4e720b48aeb635383e164d4836a48df7f22f47c8 (diff) | |
download | ansible-modules-extras-17eebf2b4f1b45c99b3eeeb149e3c8659de36c98.tar.gz |
Fixes map call usage
For the comparisions that need to be done, this map call needs
to convert to a list because the six import in ansible changes
the behavior of map to return an iterator instead of a list
(cherry picked from 362c86d3235c434b97f779cfbafe2f1a2df53b92)
-rw-r--r-- | network/f5/bigip_virtual_server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/network/f5/bigip_virtual_server.py b/network/f5/bigip_virtual_server.py index 158d8170..8ac13d0d 100644 --- a/network/f5/bigip_virtual_server.py +++ b/network/f5/bigip_virtual_server.py @@ -236,7 +236,7 @@ def set_rules(api, name, rules_list): return False rules_list = list(enumerate(rules_list)) try: - current_rules = map(lambda x: (x['priority'], x['rule_name']), get_rules(api, name)) + current_rules = [(x['priority'], x['rule_name']) for x in get_rules(api, name)] to_add_rules = [] for i, x in rules_list: if (i, x) not in current_rules: |