[pve-devel] run_command and shellquote
Michael Rasmussen
mir at datanom.net
Mon Nov 3 00:23:58 CET 2014
Hi Dietmar,
A command needs to be run like this:
/usr/bin/ssh -o 'BatchMode=yes'
-i /etc/pve/priv/zfs/192.168.3.145_id_rsa root at 192.168.3.145 zfs set
refreservation=4g tank/vm-100-disk-1
but due to run_command applies shellquote which will apply quotes to
the param refreservation=4g because of '=' to the command the command
ends up like this:
/usr/bin/ssh -o 'BatchMode=yes'
-i /etc/pve/priv/zfs/192.168.3.145_id_rsa root at 192.168.3.145 zfs set
'refreservation=4g' tank/vm-100-disk-1
which causes it to fail.
Any way to prevent shellquote to apply qoutes to refreservation=4g ?
--
Hilsen/Regards
Michael Rasmussen
Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
/usr/games/fortune -es says:
What is a magician but a practising theorist?
-- Obi-Wan Kenobi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20141103/7917e8ea/attachment.sig>
More information about the pve-devel
mailing list