From 6ec76eec5eac57e64ed9c36d12120c513766f7bf Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 20 Mar 2015 16:52:18 +0100 Subject: [PATCH] pvesm add: pass storage type as first argument --- pvesm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pvesm b/pvesm index 79213e0..60e71dc 100755 --- a/pvesm +++ b/pvesm @@ -117,7 +117,7 @@ my $print_status = sub { my $nodename = PVE::INotify::nodename(); my $cmddef = { - add => [ "PVE::API2::Storage::Config", 'create', ['storage'] ], + add => [ "PVE::API2::Storage::Config", 'create', ['type', 'storage'] ], set => [ "PVE::API2::Storage::Config", 'update', ['storage'] ], remove => [ "PVE::API2::Storage::Config", 'delete', ['storage'] ], status => [ "PVE::API2::Storage::Status", 'index', [], @@ -238,11 +238,11 @@ To get the filesystem path for a use: pvesm scan nfs # add storage pools - pvesm add - pvesm add dir --path - pvesm add nfs --path --server --export - pvesm add lvm --vgname - pvesm add iscsi --portal --target + pvesm add + pvesm add dir --path + pvesm add nfs --path --server --export + pvesm add lvm --vgname + pvesm add iscsi --portal --target # disable storage pools pvesm set --disable 1 -- 2.39.5