CiscoDevNet / ansible-viptela

An Ansible Role for automating a Viptela Overlay Network
Other
22 stars 21 forks source link

Handeling 404 status code #11

Closed radtrentasei closed 5 years ago

radtrentasei commented 5 years ago

Sometimes it might happen that URLs become invalid due to changes in the APIs.

For example refer to: https://github.com/CiscoDevNet/sdwan-ops/issues/2

Here what happens is that a previously valid url (/dataservice/template/policy/list/localdomain) become invalid.

This now leads to a module failure.

I am suggesting to avoid failing in the module and to offload the responsibility of checking for the right content to other methods.

As example consider the following ones:

get_policy_list_list
get_policy_list_dict
get_policy_definition_list
get_policy_definition_dict
radtrentasei commented 5 years ago

Pull request generated #12

stevenca commented 5 years ago

Addressed with #15