]> git.proxmox.com Git - pve-cluster.git/commitdiff
api: add fork worker ID for create and join
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Mar 2018 09:06:42 +0000 (10:06 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 13 Mar 2018 11:27:30 +0000 (12:27 +0100)
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@proxmox.com>
data/PVE/API2/ClusterConfig.pm

index f07dca898573519b98e271368efb162bf06813f2..ea253b5d987dd52d44e4234520a9072eedd88119 100644 (file)
@@ -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);
     }});