Skip to content

Truncation of Windows host name #359

Description

@maltman111

I know this has already been asked but can the hostname length be increased? We are seeing truncation at 12 characters. Can the >= 12 at least be changed to > 12?

  # Truncates the length of `:vm_hostname` to 12 characters for
  # Windows-based operating systems.
  #
  # @api private
  def finalize_vm_hostname!
    string = config[:vm_hostname]

    if windows_os? && string.is_a?(String) && string.size >= 12
      config[:vm_hostname] = "#{string[0...10]}-#{string[-1]}"
    end
  end

Thanks

Matt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions