def update(self, *args, **kwargs):
        """Update the IP on the remote service."""
        # first find the update_url for the provided account + hostname:
        update_url = next((r.update_url for r in
                           records(self._credentials, self._url)
                           if r.hostname == self.hostname), None)
        if update_url is None:
            LOG.warning("Could not find hostname '%s' at '%s'",
                        self.hostname, self._url)
            return None
        return update(update_url)
def update ( self , * args , ** kwargs ) : update_url = next ( ( r . update_url for r in records ( self . _credentials , self . _url ) if r . hostname == self . hostname ) , None ) if update_url is None : LOG . warning ( "Could not find hostname '%s' at '%s'" , self . hostname , self . _url ) return None return update ( update_url )
Update the IP on the remote service.