summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/leap_cli/commands/vagrant.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/vagrant.rb b/lib/leap_cli/commands/vagrant.rb
index 9e81b2f8..e2dfb8a9 100644
--- a/lib/leap_cli/commands/vagrant.rb
+++ b/lib/leap_cli/commands/vagrant.rb
@@ -73,13 +73,13 @@ module LeapCli; module Commands
public
#
- # returns the path to a vagrant ssh key file.
+ # returns the path to a vagrant ssh private key file.
#
# if the vagrant.key file is owned by root or ourselves, then
# we need to make sure that it owned by us and not world readable.
#
def vagrant_ssh_key_file
- file_path = Path.vagrant_ssh_pub_key_file
+ file_path = Path.vagrant_ssh_priv_key_file
Util.assert_files_exist! file_path
uid = File.new(file_path).stat.uid
if uid == 0 || uid == Process.euid