docs: def _get_ipaddress(node):
      """Adds the ipaddress attribute to the given node object if not already
      present and it is correctly given by ohai
      Returns True if ipaddress is added, False otherwise
  
      """
      if "ipaddress" not in node:
          with settings(hide('stdout'), warn_only=True):
              output = sudo('ohai -l warn ipaddress')
          if output.succeeded:
              try:
                  node['ipaddress'] = json.loads(output)[0]
              except ValueError:
                  abort("Could not parse ohai's output for ipaddress"
                        ":\n  {0}".format(output))
              return True
      return False