From 93f6451261a6db36bc2aa6b94ea4f0b8c4b429d5 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Mon, 21 Aug 2017 14:48:52 -0700 Subject: [PATCH] Retain winssh_ method prefix on auth key helper --- plugins/guests/windows/cap/public_key.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/guests/windows/cap/public_key.rb b/plugins/guests/windows/cap/public_key.rb index c246bff7d..d62e385b6 100644 --- a/plugins/guests/windows/cap/public_key.rb +++ b/plugins/guests/windows/cap/public_key.rb @@ -7,7 +7,7 @@ module VagrantPlugins def self.insert_public_key(machine, contents) if machine.communicate.is_a?(CommunicatorWinSSH::Communicator) contents = contents.strip - modify_authorized_keys machine do |keys| + winssh_modify_authorized_keys machine do |keys| if !keys.include?(contents) keys << contents end @@ -19,7 +19,7 @@ module VagrantPlugins def self.remove_public_key(machine, contents) if machine.communicate.is_a?(CommunicatorWinSSH::Communicator) - modify_authorized_keys machine do |keys| + winssh_modify_authorized_keys machine do |keys| keys.delete(contents) end else @@ -27,7 +27,7 @@ module VagrantPlugins end end - def self.modify_authorized_keys(machine) + def self.winssh_modify_authorized_keys(machine) comm = machine.communicate directories = fetch_guest_paths(comm) home_dir = directories[:home]