Merge pull request #10259 from hoatle/bugs/#10258-vagrant_ansible_local_inventory

@ #10258 | BUG: should not create /tmp/vagrant-ansible/inventory/vagrant_ansible_local_inventory/vagrant_ansible_local_inventory
This commit is contained in:
Chris Roberts 2018-10-11 10:48:27 -07:00 committed by GitHub
commit 95fad3a8e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ module VagrantPlugins
inventory_basedir = File.join(config.tmp_path, "inventory")
inventory_path = File.join(inventory_basedir, "vagrant_ansible_local_inventory")
@machine.communicate.sudo("mkdir -p #{inventory_path}")
@machine.communicate.sudo("mkdir -p #{inventory_basedir}")
@machine.communicate.sudo("chown -R -h #{@machine.ssh_info[:username]} #{config.tmp_path}")
@machine.communicate.sudo("rm -f #{inventory_path}", error_check: false)