Commit 2746a72c authored by Iustin Pop's avatar Iustin Pop
Browse files

hbal: restore nice job ID display



This fixes:

  Got job IDs JobId {fromJobId = 1052613}

And restores to:

  Got job IDs 1052624

Other improvements could be done here, of course.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent dd076c21
...@@ -56,6 +56,7 @@ import Ganeti.HTools.CLI ...@@ -56,6 +56,7 @@ import Ganeti.HTools.CLI
import Ganeti.HTools.ExtLoader import Ganeti.HTools.ExtLoader
import Ganeti.HTools.Types import Ganeti.HTools.Types
import Ganeti.HTools.Loader import Ganeti.HTools.Loader
import Ganeti.Types (fromJobId)
import Ganeti.Utils import Ganeti.Utils
import qualified Ganeti.Luxi as L import qualified Ganeti.Luxi as L
...@@ -213,7 +214,8 @@ execJobSet master nl il cref (js:jss) = do ...@@ -213,7 +214,8 @@ execJobSet master nl il cref (js:jss) = do
case jids of case jids of
Bad e -> return . Bad $ "Job submission error: " ++ formatError e Bad e -> return . Bad $ "Job submission error: " ++ formatError e
Ok x -> do Ok x -> do
putStrLn $ "Got job IDs " ++ commaJoin (map show x) putStrLn $ "Got job IDs " ++
commaJoin (map (show . fromJobId) x)
waitForJobs client x waitForJobs client x
) )
case jrs of case jrs of
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment