Projet

Général

Profil

0001-greco-add-availability-check-26205.patch

Frédéric Péters, 09 septembre 2019 10:52

Télécharger (972 octets)

Voir les différences:

Subject: [PATCH] greco: add availability check (#26205)

 passerelle/contrib/greco/models.py | 4 ++++
 1 file changed, 4 insertions(+)
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
-