Skip to content

Commit

Permalink
Custom IPv6 specification should be an array
Browse files Browse the repository at this point in the history
  • Loading branch information
mgollo authored and chris1984 committed Jan 16, 2024
1 parent ddc5f49 commit 656d106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/vsphere/requests/compute/vm_clone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def vm_clone(options = {})
else
custom_ipv6 = RbVmomi::VIM::CustomizationDhcpIpV6Generator.new
end
custom_ipv6Spec = RbVmomi::VIM.CustomizationIPSettingsIpV6AddressSpec(ip: custom_ipv6)
custom_ipv6Spec = RbVmomi::VIM.CustomizationIPSettingsIpV6AddressSpec(ip: [custom_ipv6])
custom_ipv6Spec.gateway = nic['adapter']['ipV6Spec']['gateway'] if nic['adapter']['ipV6Spec'].key?('gateway')
custom_adapter.ipV6Spec = custom_ipv6Spec
end
Expand Down

0 comments on commit 656d106

Please sign in to comment.