Revision a8946537
b/Ganeti/HTools/Rapi.hs | ||
---|---|---|
83 | 83 |
dtotal dfree (offline || drained)) |
84 | 84 |
return (name, node) |
85 | 85 |
|
86 |
loadData :: String -- ^ Cluster/URL to use as source
|
|
86 |
loadData :: String -- ^ Cluster or URL to use as source
|
|
87 | 87 |
-> IO (Result (Node.AssocList, Instance.AssocList)) |
88 | 88 |
loadData master = do -- IO monad |
89 | 89 |
let url = formatHost master |
b/Ganeti/HTools/Text.hs | ||
---|---|---|
1 | 1 |
{-| Parsing data from text-files |
2 | 2 |
|
3 | 3 |
This module holds the code for loading the cluster state from text |
4 |
files, as produced by gnt-node/gnt-instance list.
|
|
4 |
files, as produced by gnt-node and gnt-instance list.
|
|
5 | 5 |
|
6 | 6 |
-} |
7 | 7 |
|
Also available in: Unified diff