0001-greco-add-availability-check-26205.patch
passerelle/contrib/greco/models.py | ||
---|---|---|
182 | 182 |
return Client(url=self.wsdl_url, transport=Transport(self, attachments)) |
183 | 183 | |
184 | 184 | |
185 |
def check_status(self): |
|
186 |
if self.get_client().service.communicationTest('ping') is None: |
|
187 |
raise Exception('empty answer to communication test') |
|
188 | ||
185 | 189 |
@endpoint(perm='can_access') |
186 | 190 |
def ping(self, request): |
187 | 191 |
resp = self.get_client().service.communicationTest('ping') |
188 |
- |