Skip to content
This repository has been 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
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crayfishx
Copy link
Contributor

Raised in #188

Original PR dell-asm#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
@@ -18,6 +18,10 @@ def create
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