Skip to content
Snippets Groups Projects
Commit 23594127 authored by Dato Simó's avatar Dato Simó
Browse files

Instance.hs: add an 'arPolicy' field for auto-repair policy


Signed-off-by: default avatarDato Simó <dato@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 819358e1
No related branches found
No related tags found
No related merge requests found
...@@ -83,6 +83,7 @@ data Instance = Instance ...@@ -83,6 +83,7 @@ data Instance = Instance
, spindleUse :: Int -- ^ The numbers of used spindles , spindleUse :: Int -- ^ The numbers of used spindles
, allTags :: [String] -- ^ List of all instance tags , allTags :: [String] -- ^ List of all instance tags
, exclTags :: [String] -- ^ List of instance exclusion tags , exclTags :: [String] -- ^ List of instance exclusion tags
, arPolicy :: T.AutoRepairPolicy -- ^ Instance's auto-repair policy
} deriving (Show, Eq) } deriving (Show, Eq)
instance T.Element Instance where instance T.Element Instance where
...@@ -182,6 +183,7 @@ create name_init mem_init dsk_init vcpus_init run_init tags_init ...@@ -182,6 +183,7 @@ create name_init mem_init dsk_init vcpus_init run_init tags_init
, spindleUse = su , spindleUse = su
, allTags = tags_init , allTags = tags_init
, exclTags = [] , exclTags = []
, arPolicy = T.ArNotEnabled
} }
-- | Changes the index. -- | Changes the index.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment