Add an option to print job id of submitted jobs on stdout
authorKlaus Aehlig <aehlig@google.com>
Thu, 6 Jun 2013 14:10:49 +0000 (16:10 +0200)
committerKlaus Aehlig <aehlig@google.com>
Tue, 11 Jun 2013 07:27:27 +0000 (09:27 +0200)
commitd6cd74dda37a14cabf669b6884333e4e6bb31c95
tree755ca0fa7a129edcc59466d4d76a122c1d38e930
parentf5d13a77ce0f602f1ed36a83a3d4009aa7a0afc8
Add an option to print job id of submitted jobs on stdout

When submitting a job, the job id, prefixed by 'JobID: ', is output to
stderr. While this is easy to understand for humans, for scripting, it
is more convenient to have (additionally) the id on stdout (and only
the id). Add an option to provide this.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
17 files changed:
lib/cli.py
lib/client/gnt_backup.py
lib/client/gnt_cluster.py
lib/client/gnt_debug.py
lib/client/gnt_group.py
lib/client/gnt_instance.py
lib/client/gnt_network.py
lib/client/gnt_node.py
lib/client/gnt_os.py
man/ganeti.rst
man/gnt-backup.rst
man/gnt-cluster.rst
man/gnt-group.rst
man/gnt-instance.rst
man/gnt-network.rst
man/gnt-node.rst
man/gnt-os.rst