diff --git a/README.md b/README.md index c30e580..627b40c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # decort-ansible -Ansible modules for Digital Energy Orchestration Technology (DECORT) platform v3.4.2 and above +Ansible modules for Digital Energy Orchestration Technology (DECORT) platform v3.5.0 and above Note that this module may produce unreliable results when used with older DECORT API versions. @@ -9,4 +9,4 @@ Requirements: * PyJWT Python module * requests Python module * netaddr Python module -* DECORT cloud platform version 3.4.2 or higher +* DECORT cloud platform version 3.5.0 or higher diff --git a/module_utils/decort_utils.py b/module_utils/decort_utils.py index bfbed40..6481781 100644 --- a/module_utils/decort_utils.py +++ b/module_utils/decort_utils.py @@ -870,7 +870,7 @@ class DecortController(object): "Compute ID {}.").format(comp_dict['accountId'], comp_dict['id']) return - api_resp = self.decort_api_call(requests.post, "/restmachine/cloudapi/externalnetwork/list", api_params) + api_resp = self.decort_api_call(requests.post, "/restmachine/cloudapi/extnet/list", api_params) extnet_list = json.loads(api_resp.content.decode('utf8')) # list of dicts: "name" holds "NET_ADDR/NETMASK", "id" is ID if not len(vins_list): self.result['failed'] = True