def get_pod_for_build(self, build_id):
        """
        :return: PodResponse object for pod relating to the build
        """
        pods = self.os.list_pods(label='openshift.io/build.name=%s' % build_id)
        serialized_response = pods.json()
        pod_list = [PodResponse(pod) for pod in serialized_response["items"]]
        if not pod_list:
            raise OsbsException("No pod for build")
        elif len(pod_list) != 1:
            raise OsbsException("Only one pod expected but %d returned",
                                len(pod_list))
        return pod_list[0]
def get_pod_for_build ( self , build_id ) : pods = self . os . list_pods ( label = 'openshift.io/build.name=%s' % build_id ) serialized_response = pods . json ( ) pod_list = [ PodResponse ( pod ) for pod in serialized_response [ "items" ] ] if not pod_list : raise OsbsException ( "No pod for build" ) elif len ( pod_list ) != 1 : raise OsbsException ( "Only one pod expected but %d returned" , len ( pod_list ) ) return pod_list [ 0 ]
:return: PodResponse object for pod relating to the build