def get_instance()

in ad-joining/register-computer/gcp/project.py [0:0]


    def get_instance(self, name, zone):
        try:
            computer = self.__gce_client.instances().get(
                project=self.__project_id,
                zone=zone,
                instance=name).execute()
            return computer
        except HttpError as e:
            # Ignore 404 (Not Found) and return without result. Report all other errors
            if e.resp.status == 404:
                return
            raise