Soren Hansen | bc1d3a0 | 2011-09-08 13:33:17 +0200 | [diff] [blame] | 1 | import kong.config |
2 | import kong.nova | ||||
3 | |||||
4 | |||||
5 | class Manager(object): | ||||
6 | """Top-level object to access OpenStack resources.""" | ||||
7 | |||||
8 | def __init__(self): | ||||
9 | self.config = kong.config.StackConfig() | ||||
10 | self.nova = kong.nova.API(self.config.nova.host, | ||||
11 | self.config.nova.port, | ||||
12 | self.config.nova.base_url, | ||||
13 | self.config.nova.username, | ||||
14 | self.config.nova.api_key, | ||||
15 | self.config.nova.project_id) |