def wait_for_request_completion(self, service):
        """
            poll on status, waiting for success until timeout
        """
        count = 0
        result = self.status(service)
        while result.status == 'InProgress':
            count = count + 1
            if count > self.request_timeout_count:
                raise AzureRequestTimeout(
                    self.request_id % 'Operation %s timed out'
                )
            time.sleep(self.request_timeout)
            result = self.status(service)

        if result.status != 'Succeeded':
            raise AzureRequestError(
                'Operation %s failed. %s (%s)' % (
                    self.request_id,
                    format(result.error.message),
                    format(result.error.code)
                )
            )
dataset/ETHPy150Open SUSE/azurectl/azurectl/management/request_result.py/RequestResult.wait_for_request_completion/swapped operands of `%`