vmware-archive / vmware-vcenter

VMware vCenter Module
Other
87 stars 101 forks source link

Ability to remove vswitch without path parameter #210

Open ggeldenhuis opened 8 years ago

ggeldenhuis commented 8 years ago

Currently the ported esx_vswitch resource does not allow you to do the following:

esx_vswitch { "esx00001.local:vSwitch0":
  ensure    => absent,
  host      => "esx00001.local",
  vswitch   => "vSwitch0",
  transport => Transport['vcenter'],
}

The following additional PR from Dell will fix the issue: https://github.com/dell-asm/vmware-vcenter/commit/de585f80f4bf74c0aeab2cbc5f0a38448647857c

@crayfishx

crayfishx commented 8 years ago

@gjngeldenhuis I'm not going to backport this directly, I'm refactoring how the esx_* providers implement the method to find the host (every provider currently has an "almost the same" method for doing it. I'll see if I can use the method in that commit in a more centralized way from the vcenter main provider for all of the esx types.....