def get_ksclient(self): insecure = urlparse(self.auth_url).scheme != 'https' return Client(username=self.username, password=self.password, tenant_id=self.tenant_id, tenant_name=self.tenant_name, auth_url=self.auth_url, insecure=insecure)