Commit Graph

14 Commits

Author SHA1 Message Date
Dominik Csapak
a83717b705 fix #1539: add missing shellquote for proxied commands of pvesh
if we do not do this, passing arguments with spaces
(e.g., pvesh set YYY --param "one word")
leads to ssh calls like this:
ssh REMOTE pvesh set YYY --param one word

which cannot be parsed correctly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-31 09:02:39 +01:00
Dominik Csapak
8d365d994f fix #1212: allow options for delete in pvesh
we did not allow to use parameters in the delete handler in pvesh,
but we make use of them (e.g. force on snapshot deleting)

as the get/set and delete handler do the same, refactor the if/else
paths of them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-25 15:24:22 +01:00
Dominik Csapak
613ac9486b don't save password and double lines in pvesh history
we assumed that Term::ReadLine does not put
input into the history automatically, but it does this

so if this feature is enabled, we do not have to add
the inputs manually, and we have to delete the password
from the history

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-03 12:23:01 +02:00
Dietmar Maurer
1d9f1e8dbc pvesh: use PVE::SafeSyslog 2016-01-22 11:24:17 +01:00
Emmanuel Kasper
f6b62dd260 pvesh man page 2015-09-10 12:22:09 +02:00
Dietmar Maurer
435063bdd9 pvesh: fix help command 2014-05-07 12:31:55 +02:00
Stefan Priebe
776de3bc0d do not use -w switch as it breaks modules
-w enabled warnings for all modules - even when these modules comes from the OS and are not compatible
with warnings. This is the reason to NOT use -w and instead use "use warnings".
2013-10-01 10:36:47 +02:00
Dietmar Maurer
4b72af232c add option --nooutput 2012-04-20 08:20:44 +02:00
Dietmar Maurer
b9938a0bcb use utf8 encoding 2012-01-27 08:51:21 +01:00
Dietmar Maurer
40a9e2bfb7 avoid warning 2012-01-26 13:03:09 +01:00
Dietmar Maurer
46e067ac37 ipmlement proxy code for pvesh 2011-12-23 14:11:44 +01:00
Dietmar Maurer
165337e272 avoid warning about uninitialized values 2011-12-21 09:06:32 +01:00
Dietmar Maurer
f28d0dcfba correctly print string return values 2011-12-21 08:55:53 +01:00
Dietmar Maurer
aff192e6f5 imported from svn 'pve-manager/pve2' 2011-08-23 07:40:22 +02:00