Exemple #1
0
 def __init__(self, **kwargs):
     self.config = self._get_config(kwargs)
     self.backup_schedules = BackupScheduleManager(self)
     self.client = ComputeClient(self.config)
     self.flavors = FlavorManager(self)
     self.images = ImageManager(self)
     self.servers = ServerManager(self)
     if 'IPGROUPS' in API_OPTIONS[self.config.cloud_api]:
         self.ipgroups = IPGroupManager(self)
Exemple #2
0
def client():
    cl = ComputeClient(FakeConfig())
    cl.management_url = "http://example.com"
    cl.auth_token = "token"
    return cl