mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
Get interfaces for Proxmox LXC containers (#8713)
* Get interfaces for Proxmox LXC containers * Add changelog * Don't use bare except * Update changelog from suggestion Co-authored-by: Felix Fontein <felix@fontein.de> * Only lookup interfaces for running containers * Ignore not implemented status * Check that key exists in properties dict * define ignore errors in mock * Use not in --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
76d0222a83
commit
0f59bb7a99
3 changed files with 34 additions and 1 deletions
|
@ -37,7 +37,7 @@ def get_auth():
|
|||
|
||||
# NOTE: when updating/adding replies to this function,
|
||||
# be sure to only add only the _contents_ of the 'data' dict in the API reply
|
||||
def get_json(url):
|
||||
def get_json(url, ignore_errors=None):
|
||||
if url == "https://localhost:8006/api2/json/nodes":
|
||||
# _get_nodes
|
||||
return [{"type": "node",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue