Exemple #1
0
    def get_release_status(self, release, version=0):
        '''
        :param release - name of release to test
        :param version - version of release status

        '''

        try:
            stub = ReleaseServiceStub(self.channel)
            status_request = GetReleaseStatusRequest(
                name=release, version=version)

            return stub.GetReleaseStatus(
                status_request, self.timeout, metadata=self.metadata)

        except Exception:
            raise ex.GetReleaseStatusException(release, version)
Exemple #2
0
    def get_release_status(self, release, version=0):
        '''
        :param release: name of release to test
        :param version: version of release status
        '''

        LOG.debug('Helm getting release status for release=%s, version=%s',
                  release, version)
        try:
            stub = ReleaseServiceStub(self.channel)
            status_request = GetReleaseStatusRequest(name=release,
                                                     version=version)

            release_status = stub.GetReleaseStatus(status_request,
                                                   self.timeout,
                                                   metadata=self.metadata)
            LOG.debug('GetReleaseStatus= %s', release_status)
            return release_status

        except Exception:
            raise ex.GetReleaseStatusException(release, version)