[pve-devel] [PATCH v2 common] add shellcmd standard option

Tim Marx t.marx at proxmox.com
Mon Jan 21 16:04:50 CET 2019


Signed-off-by: Tim Marx <t.marx at proxmox.com>
---
 src/PVE/JSONSchema.pm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm
index fb58ad3..cba9187 100644
--- a/src/PVE/JSONSchema.pm
+++ b/src/PVE/JSONSchema.pm
@@ -52,6 +52,13 @@ sub get_standard_option {
     return $res;
 };
 
+register_standard_option('shellcmd', {
+    type => 'string',
+    description => "Run command instead of normal shell.",
+    enum => ['upgrade', 'ceph_install'],
+    optional => 1,
+});
+
 register_standard_option('pve-vmid', {
     description => "The (unique) ID of the VM.",
     type => 'integer', format => 'pve-vmid',
-- 
2.11.0




More information about the pve-devel mailing list