mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Minor bug in OCCI Image XML representation
git-svn-id: http://svn.opennebula.org/one/trunk@925 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
parent
6c10de10cc
commit
7f8dbbd4df
@ -25,13 +25,13 @@ module ImageOCCI
|
||||
<DISK>
|
||||
<ID><%= self.id %></ID>
|
||||
<NAME><%= name %></NAME>
|
||||
<SIZE><%= ((size/1024)/1024).to_s %></ADDRESS>
|
||||
<URL><%= description %></SIZE>
|
||||
<SIZE><%= ((size/1024)/1024).to_s %></SIZE>
|
||||
<URL><%= description %></URL>
|
||||
</DISK>
|
||||
}.gsub(/^ /, '')
|
||||
|
||||
|
||||
# Creates the OCCI representation of a Virtual Network
|
||||
# Creates the OCCI representation of an Image
|
||||
def to_occi()
|
||||
occi = ERB.new(OCCI_IMAGE)
|
||||
return occi.result(binding)
|
||||
|
Loading…
x
Reference in New Issue
Block a user