Revision 26d47cf5

b/Ganeti/HTools/CLI.hs
152 152
              else env_inst
153 153
      mhost = masterName opts
154 154
      lsock = luxiSocket opts
155
      setRapi = mhost /= ""
156
      setLuxi = isJust lsock
157
      setFiles = nodeSet opts || instSet opts
158
      allSet = filter id [setRapi, setLuxi, setFiles]
159
  when (length allSet > 1) $
160
       do
161
         hPutStrLn stderr "Error: Only one of the rapi, luxi, and data\
162
                          \ files options should be given."
163
         exitWith $ ExitFailure 1
164

  
155 165
  input_data <-
156 166
      case () of
157 167
        _ | mhost /= "" -> Rapi.loadData mhost

Also available in: Unified diff