Skip to content

Commit 061850c

Browse files
authored
Fix skip_start and completion (#12)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
1 parent 1bd1780 commit 061850c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/vagrant-k3s/provisioner.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def provision
5151

5252
skip_env = ""
5353
if config.skip_start
54-
skip_env = "INSTALL_K3S_SKIP_ENABLE=true"
54+
skip_env = "INSTALL_K3S_SKIP_ENABLE=true INSTALL_K3S_SKIP_START=true"
5555
end
5656

5757
prv_file = "/vagrant/k3s-provisioner.sh"
@@ -81,7 +81,7 @@ def provision
8181
outputs, handler = build_outputs
8282
begin
8383
@machine.ui.info 'Enabling K3s autocompletion ...'
84-
@machine.communicate.sudo("k3s completion -i bash", error_key: :ssh_bad_exit_status_muted, &handler)
84+
@machine.communicate.sudo("k3s completion bash -i", error_key: :ssh_bad_exit_status_muted, &handler)
8585
rescue Vagrant::Errors::VagrantError => e
8686
@machine.ui.detail "#{e.extra_data[:stderr].chomp}", :color => :yellow
8787
ensure

0 commit comments

Comments
 (0)