Example #1
0
 def get_release_status(self, release, version=None):
     """
     Gets a release's status
     """
     stub = ReleaseServiceStub(self._channel)
     status_request = GetReleaseStatusRequest(name=release, version=version)
     return stub.GetReleaseStatus(status_request,
                                  self._timeout,
                                  metadata=self.metadata)
Example #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)