From 2ef2f9bbc3c61f4bb8dd647a3227c8f8da71efed Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Thu, 19 Dec 2013 15:14:31 +0100 Subject: [PATCH] Shared SRs. --- src/spec.coffee | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/spec.coffee b/src/spec.coffee index 886a165b0..4a4272da0 100644 --- a/src/spec.coffee +++ b/src/spec.coffee @@ -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