X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/94e05c32479017bf4882a18e933551f74d491b9e..16c2369caaf714b8e4866d8e3cb21763ba849ada:/hbal.hs diff --git a/hbal.hs b/hbal.hs index 51ca704..ae4cb80 100644 --- a/hbal.hs +++ b/hbal.hs @@ -59,8 +59,7 @@ options = , oPrintInsts , oPrintCommands , oOneline - , oNodeFile - , oInstFile + , oDataFile , oRapiMaster , oLuxiSocket , oExecJobs @@ -187,7 +186,7 @@ main = do verbose = optVerbose opts shownodes = optShowNodes opts - (fixed_nl, il, _, csf) <- loadExternalData opts + (fixed_nl, il, ctags, csf) <- loadExternalData opts let offline_names = optOffline opts all_nodes = Container.elems fixed_nl @@ -210,6 +209,9 @@ main = do nl = Container.map (flip Node.setMdsk m_dsk . flip Node.setMcpu m_cpu) nm + when (not oneline && verbose > 1) $ + putStrLn $ "Loaded cluster tags: " ++ intercalate "," ctags + when (Container.size il == 0) $ do (if oneline then putStrLn $ formatOneline 0 0 0 else printf "Cluster is empty, exiting.\n")