vagrant-openvz 0.0.6 → 0.0.7

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.
@@ -13,7 +13,7 @@ GIT
13
13
  PATH
14
14
  remote: .
15
15
  specs:
16
- vagrant-openvz (0.0.4)
16
+ vagrant-openvz (0.0.7)
17
17
 
18
18
  GEM
19
19
  remote: https://rubygems.org/
@@ -12,7 +12,7 @@ module VagrantPlugins
12
12
  if config.netadapter.nil?
13
13
  env[:machine_ip] ||= env[:machine].provider.driver.fetch_ip(config.vzctid)
14
14
  else
15
- env[:machine_ip] ||= env[:machine].provider.driver.fetch_ip_netadapter(config.vzctid)
15
+ env[:machine_ip] ||= env[:machine].provider.driver.fetch_ip_netadapter(config.vzctid,config.netadapter)
16
16
  end
17
17
 
18
18
  @app.call(env)
@@ -90,11 +90,10 @@ module VagrantPlugins
90
90
  @cli.fetch_ip(vzctlid)
91
91
  end
92
92
 
93
- def fetch_ip_netadapter(vzctlid)
94
- @cli.fetch_ip_netadapter(vzctlid)
93
+ def fetch_ip_netadapter(vzctlid,netadapter)
94
+ @cli.fetch_ip_netadapter(vzctlid,netadapter)
95
95
  end
96
96
 
97
-
98
97
  end
99
98
  end
100
99
  end
@@ -18,8 +18,8 @@ module VagrantPlugins
18
18
  run(:vzlist,"-a","-H","-t","-o","ip","#{vzctlid}")
19
19
  end
20
20
 
21
- def fetch_ip_netadapter(vzctlid)
22
- run(:vzctl,"exec","#{vzctlid}","ip -4 addr show eth1 | egrep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | grep -v 255")
21
+ def fetch_ip_netadapter(vzctlid,netadapter)
22
+ run(:vzctl,"exec","#{vzctlid}","ip -4 addr show #{netadapter} | egrep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | grep -v 255")
23
23
  end
24
24
 
25
25
  def create(vzctlid,settings={})
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Openvz
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-openvz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: