code: def _clean_message(message):
      '''Internal helper to sanitize message output'''
      message = message.replace('zonecfg: ', '')
      message = message.splitlines()
      for line in message:
          if line.startswith('On line'):
              message.remove(line)
      return "\n".join(messagef _clean_message(message):
      '''Internal helper to sanitize message output'''
      message = message.replace('zonecfg: ', '')
      message = message.splitlines()
      for line in message:
          if line.startswith('On line'):
              message.remove(line)
      return "\n".join(message)
docs: Internal helper to sanitize message output