vagrant-qemu 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa6a7877a0f30cbe820b09bfb481863f115758c542c92f02570641c3057983de
4
- data.tar.gz: 74151d323890fcf318b74af5c251ae9413f8089429a700ac51e1e3f57d0e693f
3
+ metadata.gz: ad58eff4d1ca4ecc7899ccd8f5cf5e13497a0ba7f226dc425858f89a59cc2151
4
+ data.tar.gz: b91caf53e6f505b0ec6e7a6aefd4773f0205fcfff35f1015f915a4ce9056a0aa
5
5
  SHA512:
6
- metadata.gz: e0bc88d099f46ce974eb217025108e86d6ab14ca7efe199450e7ddf1e9364ebe24d466175067f3cf30f470864981251cecb46b3bffdfa070f6e7caf67906249b
7
- data.tar.gz: 3d7e6b3486b69cf0a7ff5ebdcd536bda37ea5f733e6eb89677746d27b3e6169f12e369ce31d6b02dfacb7e6145719c656afed238796bba8338b8f11fc69deacb
6
+ metadata.gz: 56885cedf852f75eaf87b6ab73904eb43a7775d36a7586a2f5558905726ccf0d5ebdafb69ea5fe9f6e34733b404d49245d7a87c0224d6c25e7aeb21b547eedd3
7
+ data.tar.gz: a7d03a0326ffe78dfad134a11cc402a091a872c97b3bbf5fea0c769a3712f604fc2efa544cff29d2a8ccb34cb82af086a6f5a7ff8dbfb4bdb7cee387354c63e9
data/CHANGELOG.md CHANGED
@@ -77,3 +77,7 @@
77
77
  * Ignore exception after sending 'system_powerdown' cmd, fix windows halt error
78
78
  * Move pid file to tmp dir
79
79
  * Be able to auto correct ssh port collisions, new config: ssh_auto_correct
80
+
81
+ # 0.3.8 (2025-02-21)
82
+
83
+ * Fix regression that ssh_port is not working #68
@@ -21,16 +21,23 @@ module VagrantPlugins
21
21
  machine.config.vm.networks.each do |type, options|
22
22
  next if type != :forwarded_port
23
23
 
24
- # remap ssh.host to ssh_port
24
+ # update ssh.host to ssh_port
25
25
  if options[:id] == "ssh"
26
- remap[options[:host]] = machine.provider_config.ssh_port
26
+ options[:host] = machine.provider_config.ssh_port
27
+ options[:auto_correct] = machine.provider_config.ssh_auto_correct
27
28
  has_ssh_forward = true
28
29
  break
29
30
  end
30
31
  end
31
32
 
32
33
  if !has_ssh_forward
33
- machine.config.vm.networks.forward_port(22, machine.provider_config.ssh_port, [id: "ssh", auto_correct: machine.provider_config.ssh_auto_correct])
34
+ machine.config.vm.network :forwarded_port,
35
+ :guest => 22,
36
+ :host => machine.provider_config.ssh_port,
37
+ :host_ip => "127.0.0.1",
38
+ :id => "ssh",
39
+ :auto_correct => machine.provider_config.ssh_auto_correct,
40
+ :protocol => "tcp"
34
41
  end
35
42
 
36
43
  @app.call(env)
@@ -25,7 +25,7 @@ module VagrantPlugins
25
25
  end
26
26
 
27
27
  # Update ssh_port if needed
28
- if env[:machine_state_id] != :not_created
28
+ if env[:machine_state_id] == :running
29
29
  env[:machine].provider_config.ssh_port = env[:machine].provider.driver.get_ssh_port(env[:machine].provider_config.ssh_port)
30
30
  end
31
31
  @app.call(env)
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module QEMU
3
- VERSION = '0.3.7'
3
+ VERSION = '0.3.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-qemu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - ppggff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-02 00:00:00.000000000 Z
11
+ date: 2025-02-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Enables Vagrant to manage machines with QEMU.
14
14
  email: pgf00a@gmail.com