diff --git a/docs/modules/instance_type_list.md b/docs/modules/instance_type_list.md index 473b8e9c..ec728994 100644 --- a/docs/modules/instance_type_list.md +++ b/docs/modules/instance_type_list.md @@ -51,9 +51,33 @@ List and filter on Linode Instance Types. "price": { "hourly": 0.008, "monthly": 5 - } + }, + "region_prices": [ + { + "id": "ap-west", + "hourly": 0.02, + "monthly": 20 + }, + { + "id": "ap-northeast", + "hourly": 0.02, + "monthly": 20 + } + ] } }, + "region_prices": [ + { + "id": "ap-west", + "hourly": 0.02, + "monthly": 20 + }, + { + "id": "ap-northeast", + "hourly": 0.02, + "monthly": 20 + } + ], "class": "standard", "disk": 81920, "gpus": 0, diff --git a/plugins/module_utils/doc_fragments/instance_type_list.py b/plugins/module_utils/doc_fragments/instance_type_list.py index d434d31e..43e0d1bd 100644 --- a/plugins/module_utils/doc_fragments/instance_type_list.py +++ b/plugins/module_utils/doc_fragments/instance_type_list.py @@ -16,9 +16,33 @@ "price": { "hourly": 0.008, "monthly": 5 - } + }, + "region_prices": [ + { + "id": "ap-west", + "hourly": 0.02, + "monthly": 20 + }, + { + "id": "ap-northeast", + "hourly": 0.02, + "monthly": 20 + } + ] } }, + "region_prices": [ + { + "id": "ap-west", + "hourly": 0.02, + "monthly": 20 + }, + { + "id": "ap-northeast", + "hourly": 0.02, + "monthly": 20 + } + ], "class": "standard", "disk": 81920, "gpus": 0, diff --git a/tests/integration/targets/instance_type_list/tasks/main.yaml b/tests/integration/targets/instance_type_list/tasks/main.yaml index d534fcd2..2f4dbc8b 100644 --- a/tests/integration/targets/instance_type_list/tasks/main.yaml +++ b/tests/integration/targets/instance_type_list/tasks/main.yaml @@ -19,6 +19,7 @@ that: - filter.instance_types | length >= 1 - filter.instance_types[0].class == 'nanode' + - filter.instance_types[0].region_prices | length >= 1 environment: LINODE_UA_PREFIX: '{{ ua_prefix }}'