summaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/vagrant.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-09-15 11:45:24 -0700
committerelijah <elijah@riseup.net>2015-09-15 11:45:24 -0700
commit4241729ba2f5e539ba228616c479bf5a64a7f8e2 (patch)
tree8d0b1e1f3bb14061d6ea5c739f8f4b622b536d02 /lib/leap_cli/commands/vagrant.rb
parent4c622c1b6d652effdc84899befa98c36c37d10a2 (diff)
fix vagrant ssh private key path
Diffstat (limited to 'lib/leap_cli/commands/vagrant.rb')
-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