knife-xapi 0.3.3 → 0.3.4

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.
@@ -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
- ui.warn "#{h.color(net_name,:red)} not found, moving on"
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
 
@@ -1,3 +1,3 @@
1
1
  module KnifeXenserver
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
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.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-13 00:00:00.000000000 Z
12
+ date: 2012-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef