| Total Complexity | 2 |
| Total Lines | 9 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | # -*- coding: utf-8 -*- |
||
| 24 | class ComputeAPI(API): |
||
| 25 | """ The default region is par1 as it was the first availability zone |
||
| 26 | provided by Scaleway, but it could change in the future. |
||
| 27 | """ |
||
| 28 | |||
| 29 | def __init__(self, region='par1', **kwargs): |
||
| 30 | assert region in REGIONS |
||
| 31 | base_url = REGIONS[region]['url'] |
||
| 32 | super(ComputeAPI, self).__init__(base_url=base_url, **kwargs) |
||
| 33 |