code: def get_error(self, errstr):
          '''
          Parse out an error and return a targeted error string
          '''
          for line in errstr.split('\n'):
              if line.startswith('ssh:'):
                  return line
              if line.startswith('Pseudo-terminal'):
                  continue
              if 'to the list of known hosts.' in line:
                  continue
              return line
          return errstf get_error(self, errstr):
          '''
          Parse out an error and return a targeted error string
          '''
          for line in errstr.split('\n'):
              if line.startswith('ssh:'):
                  return line
              if line.startswith('Pseudo-terminal'):
                  continue
              if 'to the list of known hosts.' in line:
                  continue
              return line
          return errstr
docs: Parse out an error and return a targeted error string