Shared SRs.

This commit is contained in:
Julien Fontanet 2013-12-19 15:14:31 +01:00
parent 1c98a05b4f
commit 2ef2f9bbc3

View File

@ -106,8 +106,9 @@ module.exports = (refsToUUIDs) ->
SRs: @dynamic [],
SR:
enter: (value) ->
if value.$pool is @value.UUID
update: (value) ->
remove @field, value.UUID
if value.$shared and value.$pool is @value.UUID
@field.push value.UUID
exit: (value) -> remove @field, value.UUID
@ -401,6 +402,10 @@ module.exports = (refsToUUIDs) ->
$VDIs: get('VDIs')
# FIXME: only here for pools.
$pool: get '$pool'
$shared: get 'shared'
PBD:
test: test