You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: system_hosts_resolver.rb
    path of file: ./repos/kitchen-terraform/lib/kitchen/terraform
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Copyright 2016-2021 Copado NCS LLC
#
# Licensed under the Apache License, Version 2.0 (th
    
      def resolved_output(hosts_output:)
        outputs.fetch hosts_output.to_sym
      rescue ::KeyError
        raise(
          ::Kitchen::ClientError,
          "Resolving the system hosts failed due to the absence of the '#{hosts_output}' key from the Terraform " \
          "outputs of the Kitchen instance state. This error indicates either that `kitchen converge` must be " \
          "executed again to update the Terraform outputs or that the wrong key was provided."
        )
      end