Skip to content
This repository was archived by the owner on Aug 21, 2020. It is now read-only.

Proposed port of dell-asm#77 - Allow VDS to be created according to host versions#196

Open
crayfishx wants to merge 1 commit intovmware-archive:masterfrom
crayfishx:dell-asm-77
Open

Proposed port of dell-asm#77 - Allow VDS to be created according to host versions#196
crayfishx wants to merge 1 commit intovmware-archive:masterfrom
crayfishx:dell-asm-77

Conversation

@crayfishx
Copy link
Contributor

Raised in #188

Original PR https://github.com/dell-asm/vmware-vcenter/pull/77

Original commit message

  • Allow creating VDS with specific version
  • Enabled search of host based on the VDS version

- Allow creating VDS with specific version
- Enabled search of host based on the VDS version
create_spec = RbVmomi::VIM::DVSCreateSpec.new
create_spec.configSpec = RbVmomi::VIM::DVSConfigSpec.new
create_spec.configSpec.name = basename
if @dvswitch.nil? && resource[:vds_version]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dvswitch.nil? seems unnecessarily redundant since this is the create method and @DVSwitch is set by the method triggered by the exists? method.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants