knife-xapi 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/chef/knife/xapi_base.rb +5 -1
- data/lib/knife-xapi/version.rb +1 -1
- metadata +2 -2
data/lib/chef/knife/xapi_base.rb
CHANGED
@@ -164,7 +164,11 @@ class Chef::Knife
|
|
164
164
|
Chef::Log.debug "Looking up vif for: #{h.color(net_name, :cyan)}"
|
165
165
|
network_ref = xapi.network.get_by_name_label(net_name).first
|
166
166
|
if network_ref.nil?
|
167
|
-
|
167
|
+
if net_name =~ /Network (\d)+$/ # special handing for 'Network X' As displayed by XenCenter
|
168
|
+
add_vif_by_name(vm_ref, dev_num, "Pool-wide network associated with eth#{$1}")
|
169
|
+
else
|
170
|
+
ui.warn "#{h.color(net_name,:red)} not found, moving on"
|
171
|
+
end
|
168
172
|
return
|
169
173
|
end
|
170
174
|
|
data/lib/knife-xapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-xapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|