disk.{create,resize}() accept integers for size.

This commit is contained in:
Julien Fontanet
2015-12-16 11:34:39 +01:00
parent c14e6f2a63
commit 4cc4adeda6

View File

@@ -14,7 +14,7 @@ create.description = 'create a new disk on a SR'
create.params = {
name: { type: 'string' },
size: { type: 'string' },
size: { type: ['integer', 'string'] },
sr: { type: 'string' }
}
@@ -32,7 +32,7 @@ resize.description = 'resize an existing VDI'
resize.params = {
id: { type: 'string' },
size: { type: 'string' }
size: { type: ['integer', 'string'] }
}
resize.resolve = {