Closed pendor closed 3 years ago
Would it be possible to have the test build re-run for this and for someone to take a look at merging it? As far as I can tell, but build failed for reasons unrelated to this change as the preceding builds also failed with the same issue.
@pendor I will take a look at this, test and merge
Eh, it was just a RuboCop complaining, we should improve our rubocop notifications. I've fixed that.
The get_network function in lib/fog/vsphere/requests/compute/get_network.rb takes a name or _ref attribute. This commit expose that _reg attribute (already retrieved via previous vsphere call) so that clients of fog-vsphere can look up network objects via the globally unique _ref attribute instead of the non-unique Name attribute.
Additionally, this enables fixing a bug in clients where the id attribute is incorrectly substituted for _ref, retrieving an incorrect object in certain VSphere environments.