{-| Parsing data from text-files
This module holds the code for loading the cluster state from text
-files, as produced by gnt-node/gnt-instance list.
+files, as produced by gnt-node and gnt-instance list.
-}
-- | Load an instance from a field list
loadInst :: (Monad m) =>
- [(String, Int)] -> [String] -> m (String, Instance.Instance)
+ [(String, Ndx)] -> [String] -> m (String, Instance.Instance)
loadInst ktn (name:mem:dsk:status:pnode:snode:[]) = do
pidx <- lookupNode ktn name pnode
sidx <- (if null snode then return Node.noSecondary