Fix getting IP by not returning a bad address

This commit is contained in:
Jake Spain 2023-08-21 21:20:36 -04:00
parent 7822b2182e
commit f02e0eb19a
No known key found for this signature in database
GPG key ID: BC1C4DA0A085E113
3 changed files with 34 additions and 2 deletions

View file

@ -818,7 +818,7 @@ end
def mock_RbVmomi_VIM_VirtualMachine(options = {})
options[:snapshot_tree] = nil if options[:snapshot_tree].nil?
options[:name] = 'VM' + rand(65536).to_s if options[:name].nil?
options[:ip] = '169.254.255.255' if options[:ip].nil?
options[:ip] = '192.168.0.2' if options[:ip].nil?
options[:path] = [] if options[:path].nil?
mock = MockVirtualMachine.new()