Esempio n. 1
0
 def get_release_content(self, release, version=None):
     """
     Gets a release's content
     """
     stub = ReleaseServiceStub(self._channel)
     status_request = GetReleaseContentRequest(name=release,
                                               version=version)
     return stub.GetReleaseContent(status_request,
                                   self._timeout,
                                   metadata=self.metadata)
Esempio n. 2
0
    def get_release_content(self, release, version=0):
        '''
        :param release: name of release to test
        :param version: version of release status
        '''

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

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

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