Method: Fog::Compute::IBM::Mock#get_image_manifest
- Defined in:
- lib/fog/ibm/requests/compute/get_image_manifest.rb
permalink #get_image_manifest(image_id) ⇒ Object
TODO: Create a data store for this.
28 29 30 31 32 33 34 |
# File 'lib/fog/ibm/requests/compute/get_image_manifest.rb', line 28 def get_image_manifest(image_id) response = Excon::Response.new response.status = 200 response.body = {"manifest"=> "<?xml version=\"1.0\" encoding=\"UTF-8\"?><parameters xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"platform:/resource/com.ibm.ccl.devcloud.client/schema/parameters.xsd\">\n\t<firewall>\n\t\t<rule>\n\t\t\t<source>0.0.0.0/0</source>\n\t\t\t<minport>1</minport>\n\t\t\t<maxport>65535</maxport>\n\t\t</rule>\n\t</firewall>\n</parameters>"} response end |