mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-26 21:59:38 -07:00
module utils: update code to python3 (#10907)
* module utils: update code to python3 * add changelog frag
This commit is contained in:
parent
ce544f370c
commit
cc83188594
9 changed files with 83 additions and 77 deletions
|
|
@ -20,7 +20,7 @@ VXOS_VERSION = None
|
|||
def get_version(iocs_json):
|
||||
if not iocs_json:
|
||||
raise Exception('Invalid IOC json')
|
||||
active = filter(lambda x: x['mgmtRole'], iocs_json)
|
||||
active = [x for x in iocs_json if x['mgmtRole']]
|
||||
if not active:
|
||||
raise Exception('Unable to detect active IOC')
|
||||
active = active[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue