alces-software / metalware

Tools and conventions for improving bare metal machine management
Other
2 stars 0 forks source link

Newline printed for each iteration of build_hooks #449

Open ColonelPanics opened 6 years ago

ColonelPanics commented 6 years ago

I have a single build hook script at /var/lib/metalware/build_hooks/myscript.sh with the following:

echo "this is for <%= node.name %>" >> /root/<%= node.name %>.txt

If I attempt to build a group with 10 nodes I get a newline for each node

[root@gateway [aang] ~]# metal build -g nodes
Waiting for nodes to report as built...
(Ctrl-C to terminate)

^CExiting...
Run the complete_hook for nodes as if build succeeded?
[yes/no]
yes
Done.

Ideally these would be suppressed as it would massively effect the output when building on larger groups.