Skip to content

Commit

Permalink
project: DC-Specific Pricing (#421)
Browse files Browse the repository at this point in the history
* implementation

* testing line

* gendocs

* Linodego -> 5.9.0

---------

Co-authored-by: Ania Misiorek <amisiore@akamai.com>
Co-authored-by: Ania Misiorek <139170033+amisiorek-akamai@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 3, 2023
1 parent 3e0660d commit 8437fc1
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 3 deletions.
26 changes: 25 additions & 1 deletion docs/modules/instance_type_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
26 changes: 25 additions & 1 deletion plugins/module_utils/doc_fragments/instance_type_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
linode-api4>=5.7.2
linode-api4>=5.9.0
polling>=0.3.2
types-requests==2.31.0.2
ansible-specdoc>=0.0.14
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
Expand Down

0 comments on commit 8437fc1

Please sign in to comment.