server/lib/deltacloud/drivers/mock/mock_driver.rb
# Mock allocation of 'new' address
# There is a synchronization problem (but it's the mock driver,
# mutex seemed overkill)
#
Mock allocation of 'new' address
There is a synchronization problem (but it's the mock driver,
mutex seemed overkill)
Mock allocation of ' new ' address There is a synchronization problem ( but it ' s the mock driver mutex seemed overkill )
def allocate_mock_address
      addresses = []
      @client.members(:addresses).each do |addr|
        addresses << IPAddr.new("#{addr}").to_i
      end
      IPAddr.new(addresses.sort.pop+1, Socket::AF_INET)
    end
def allocate_mock_address addresses = [ ] @client . members ( :addresses ) . each do | addr | addresses << IPAddr . new ( "#{addr}" ) . to_i end IPAddr . new ( addresses . sort . pop + 1 , Socket :: AF_INET ) end
Mock allocation of 'new' address
There is a synchronization problem (but it's the mock driver,
mutex seemed overkill)
Mock allocation of ' new ' address There is a synchronization problem ( but it ' s the mock driver mutex seemed overkill )