[pve-devel] [PATCH RFC manager 8/8] update descriptions, error messages

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Aug 23 16:27:24 CEST 2016


---
 PVE/API2/Nodes.pm | 2 +-
 PVE/CLI/pveam.pm  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 79e76e1..5c0f6fa 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -1057,7 +1057,7 @@ __PACKAGE__->register_method({
 	properties => {
 	    node => get_standard_option('pve-node'),
 	    storage => get_standard_option('pve-storage-id', {
-		description => "Only list status for  specified storage",
+		description => "The storage where the template will be stored",
 		completion => \&PVE::Storage::complete_storage_enabled,
 	    }),
 	    template => { type => 'string',
diff --git a/PVE/CLI/pveam.pm b/PVE/CLI/pveam.pm
index 5fd0d76..84299a8 100644
--- a/PVE/CLI/pveam.pm
+++ b/PVE/CLI/pveam.pm
@@ -93,7 +93,7 @@ __PACKAGE__->register_method ({
 	properties => {
 	    node => get_standard_option('pve-node'),
 	    storage => get_standard_option('pve-storage-id', {
-		description => "Only list status for specified storage",
+		description => "Only list templates on specified storage",
 		completion => \&PVE::Storage::complete_storage_enabled,
 	   }),
 	},
@@ -116,7 +116,7 @@ __PACKAGE__->register_method ({
 
 	my $cfg = PVE::Storage::config();
 
-	die "Storage do not support templates!\n" if !$cfg->{ids}->{$storeid}->{content}->{vztmpl};
+	die "Storage does not support templates!\n" if !$cfg->{ids}->{$storeid}->{content}->{vztmpl};
 
 	my $vollist = PVE::Storage::volume_list($cfg, $storeid, undef, 'vztmpl');
 
-- 
2.1.4





More information about the pve-devel mailing list