]> git.proxmox.com Git - pve-cluster.git/commit
pvecm addnode: error out on interactive call
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Feb 2017 15:59:07 +0000 (16:59 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 28 Feb 2017 10:42:22 +0000 (11:42 +0100)
commite73b85c0b99cd4da32ed5e3a76e5c8574a956bff
tree148e25368ce941acd779bb96c968a22c875c3a09
parent606a890448f0a6219db3d1c19b98960a3dcbcaa8
pvecm addnode: error out on interactive call

addnode is thought to be used by the `add` command only.
So check if STDIN or STOUT are connected to a tty and exit with an
error message if this is the case.
The force flag allows overwriting this check.

Fixes bug #294

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/CLI/pvecm.pm