Method: Fog::Storage::IBM::Mock#format_get_volume_response_for

Defined in:
lib/fog/ibm/requests/storage/get_volume.rb

#format_get_volume_response_for(volume_id) ⇒ Object

get_volume response doesn’t contain instanceId

[View source]

39
40
41
42
43
# File 'lib/fog/ibm/requests/storage/get_volume.rb', line 39

def format_get_volume_response_for(volume_id)
  # If we aren't attached/ready, make us ready
  ready_volume(volume_id) unless volume_attached? volume_id
  self.data[:volumes][volume_id].reject { |k,v| k == 'instanceId' }
end