[pve-devel] [PATCH v4 manager 2/5] deprecate old upgrade property

Tim Marx t.marx at proxmox.com
Mon Jan 28 14:55:50 CET 2019


Signed-off-by: Tim Marx <t.marx at proxmox.com>
---
 PVE/API2/Nodes.pm | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 24bb6a1b..1bf3fc27 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -732,7 +732,7 @@ __PACKAGE__->register_method ({
 	    node => get_standard_option('pve-node'),
 	    upgrade => {
 		type => 'boolean',
-		description => "Run 'apt-get dist-upgrade' instead of normal shell.",
+		description => "Deprecated, use the 'cmd' property instead! Run 'apt-get dist-upgrade' instead of normal shell.",
 		optional => 1,
 		default => 0,
 	    },
@@ -808,7 +808,7 @@ __PACKAGE__->register_method ({
 	# so we select the fastest chipher here (or 'none'?)
 	my $remcmd = $remip ? 
 	    ['/usr/bin/ssh', '-e', 'none', '-t', $remip] : [];
-	
+	# FIXME: remove with 6.0
 	if ($param->{upgrade}) {
 	    $param->{cmd} = 'upgrade';
 	}
@@ -889,7 +889,7 @@ __PACKAGE__->register_method ({
 	    node => get_standard_option('pve-node'),
 	    upgrade => {
 		type => 'boolean',
-		description => "Run 'apt-get dist-upgrade' instead of normal shell.",
+		description => "Deprecated, use the 'cmd' property instead! Run 'apt-get dist-upgrade' instead of normal shell.",
 		optional => 1,
 		default => 0,
 	    },
@@ -938,7 +938,7 @@ __PACKAGE__->register_method ({
 
 	my $remcmd = $remip ?
 	    ['/usr/bin/ssh', '-e', 'none', '-t', $remip , '--'] : [];
-
+	# FIXME: remove with 6.0
 	if ($param->{upgrade}) {
 	    $param->{cmd} = 'upgrade';
 	}
@@ -1036,7 +1036,7 @@ __PACKAGE__->register_method ({
 	    proxy => get_standard_option('spice-proxy', { optional => 1 }),
 	    upgrade => {
 		type => 'boolean',
-		description => "Run 'apt-get dist-upgrade' instead of normal shell.",
+		description => "Deprecated, use the 'cmd' property instead! Run 'apt-get dist-upgrade' instead of normal shell.",
 		optional => 1,
 		default => 0,
 	    },
@@ -1067,7 +1067,7 @@ __PACKAGE__->register_method ({
 
 	my $authpath = "/nodes/$node";
 	my $permissions = 'Sys.Console';
-
+	# FIXME: remove with 6.0
 	if ($param->{upgrade}) {
 	    $param->{cmd} = 'upgrade';
 	}
-- 
2.11.0




More information about the pve-devel mailing list