Fix public key path
This commit is contained in:
parent
227a598917
commit
ce8902574c
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ module Vagrant
|
|||
def create
|
||||
# FIXME: Ruby 1.8 users dont have SecureRandom
|
||||
machine_id = SecureRandom.hex(6)
|
||||
public_key = Vagrant.source_root.join('../keys/vagrant.pub').expand_path.to_s
|
||||
public_key = Vagrant.source_root.join('keys', 'vagrant.pub').expand_path.to_s
|
||||
log, status = lxc :create, '--template', 'ubuntu-cloud', '--name', machine_id, '--', '-S', public_key
|
||||
# TODO: Handle errors
|
||||
machine_id
|
||||
|
|
|
@ -49,7 +49,7 @@ describe Vagrant::LXC::Container do
|
|||
|
||||
describe 'creation' do
|
||||
let(:new_machine_id) { 'random-machine-id' }
|
||||
let(:public_key_path) { Vagrant.source_root.join('..', 'keys', 'vagrant.pub').expand_path.to_s }
|
||||
let(:public_key_path) { Vagrant.source_root.join('keys', 'vagrant.pub').expand_path.to_s }
|
||||
|
||||
before do
|
||||
subject.stub(:lxc)
|
||||
|
|
Loading…
Reference in a new issue