[pve-devel] [PATCH cluster 2/2] api: add fork worker ID for create and join

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Mar 6 10:06:42 CET 2018


allows to shows this in the web interface in the task log heading,
e.g.:
Create Cluster 'Foo'
Join node 'Bar'

Needs the respective mappings in the widget toolkits Utils file

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 data/PVE/API2/ClusterConfig.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/PVE/API2/ClusterConfig.pm b/data/PVE/API2/ClusterConfig.pm
index f07dca8..ea253b5 100644
--- a/data/PVE/API2/ClusterConfig.pm
+++ b/data/PVE/API2/ClusterConfig.pm
@@ -151,7 +151,7 @@ __PACKAGE__->register_method ({
 	    die $@ if $@;
 	};
 
-	return $rpcenv->fork_worker('clustercreate', '',  $authuser, $worker);
+	return $rpcenv->fork_worker('clustercreate', $param->{clustername},  $authuser, $worker);
 }});
 
 __PACKAGE__->register_method({
@@ -516,7 +516,7 @@ __PACKAGE__->register_method ({
 	    die $@ if $@;
 	};
 
-	return $rpcenv->fork_worker('clusterjoin', '',  $authuser, $worker);
+	return $rpcenv->fork_worker('clusterjoin', $param->{hostname},  $authuser, $worker);
     }});
 
 
-- 
2.14.2





More information about the pve-devel mailing list