Revision 9c0a27d0 src/Ganeti/Query/Common.hs
b/src/Ganeti/Query/Common.hs | ||
---|---|---|
4 | 4 |
|
5 | 5 |
{- |
6 | 6 |
|
7 |
Copyright (C) 2012 Google Inc. |
|
7 |
Copyright (C) 2012, 2013 Google Inc.
|
|
8 | 8 |
|
9 | 9 |
This program is free software; you can redistribute it and/or modify |
10 | 10 |
it under the terms of the GNU General Public License as published by |
... | ... | |
104 | 104 |
|
105 | 105 |
-- | Convert RpcError to ResultStatus |
106 | 106 |
rpcErrorToStatus :: RpcError -> ResultStatus |
107 |
rpcErrorToStatus (OfflineNodeError _) = RSOffline
|
|
107 |
rpcErrorToStatus OfflineNodeError = RSOffline
|
|
108 | 108 |
rpcErrorToStatus _ = RSNoData |
109 | 109 |
|
110 | 110 |
-- * Common fields |
Also available in: Unified diff