Commit 81879d92 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

hsqueeze: fix position of option in gnt-node power



hsqueeze can produce a shell script with the commands to squeeze
the cluster; in the script, fix the position of the '-f' option
in the 'gnt-node power' command.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarJose Lopes <jabolopes@google.com>
parent 1e078ef3
......@@ -228,7 +228,7 @@ main opts args = do
off_cmd =
Cluster.formatCmds off_jobs
++ "\necho Power Commands\n"
++ (toOffline >>= printf " gnt-node power off -f %s\n" . Node.alias)
++ (toOffline >>= printf " gnt-node power -f off %s\n" . Node.alias)
toOnline = tryOnline minInstance conf onlineCandidates
nodesToOnline = fromMaybe onlineCandidates toOnline
((fin_on_nl, fin_on_il), on_mvs) =
......@@ -238,7 +238,7 @@ main opts args = do
on_jobs = Cluster.splitJobs on_mvs
on_cmd =
"echo Power Commands\n"
++ (nodesToOnline >>= printf " gnt-node power on -f %s\n" . Node.alias)
++ (nodesToOnline >>= printf " gnt-node power -f on %s\n" . Node.alias)
++ Cluster.formatCmds on_jobs
when (verbose > 1) . putStrLn
......
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