[pve-devel] r5506 - pve-storage/pve2/PVE/API2/Storage

svn-commits at proxmox.com svn-commits at proxmox.com
Fri Feb 11 08:15:53 CET 2011


Author: dietmar
Date: 2011-02-11 08:15:53 +0100 (Fri, 11 Feb 2011)
New Revision: 5506

Modified:
   pve-storage/pve2/PVE/API2/Storage/Content.pm
Log:
use get_standard_option


Modified: pve-storage/pve2/PVE/API2/Storage/Content.pm
===================================================================
--- pve-storage/pve2/PVE/API2/Storage/Content.pm	2011-02-11 07:14:51 UTC (rev 5505)
+++ pve-storage/pve2/PVE/API2/Storage/Content.pm	2011-02-11 07:15:53 UTC (rev 5506)
@@ -33,11 +33,11 @@
 		type => 'string', format => 'pve-storage-content',
 		optional => 1,
 	    },
-	    vmid => { 
-		description => "Only list images for this VM",
-		type => 'string', format => 'pve-vmid',
-		optional => 1,		
-	    },
+	    vmid => get_standard_option
+		('pve-vmid', { 
+		    description => "Only list images for this VM",
+		    optional => 1,		
+		 }),
 	},
     },
     returns => {
@@ -105,11 +105,7 @@
 		description => "The name of the file to create/upload.",
 		type => 'string',
 	    },
-	    vmid => { 
-		description => "Specify owner VM",
-		type => 'string', format => 'pve-vmid',
-		requires => 'size',
-	    },
+	    vmid => get_standard_option('pve-vmid', { description => "Specify owner VM" } ),
 	    size => {
 		description => "Size in kilobyte (1024 bytes). Optional suffixes 'M' (megabyte, 1024K) and 'G' (gigabyte, 1024M)",
 		type => 'string',



More information about the pve-devel mailing list