def get_restapi_body_structure():
with open('/home/avankat/Documents/automated-device-config/opengear.om/'
'plugins/module_utils/network/om/utils/structure.json') as file:
return json.load(file)
I don't have sufficient knowledge of Ansible internals to fix this one - I assume there should be a list of paths to Ansible collections instead of the hard coded path.
Hardcoded path to
structure.json
in/opengear/om/plugins/module_utils/network/om/utils/utils.py
/opengear/om/plugins/module_utils/network/om/utils/utils.py
:I don't have sufficient knowledge of Ansible internals to fix this one - I assume there should be a list of paths to Ansible collections instead of the hard coded path.
Thank you.