]> git.proxmox.com Git - pmg-api.git/commitdiff
pmgcm: use minus for join-command, alias for compat
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 16 Mar 2021 18:12:45 +0000 (19:12 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 16 Mar 2021 18:13:31 +0000 (19:13 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PMG/CLI/pmgcm.pm

index c5ce912c18541cda01527658c0d3166ff682239f..ecf9cc763a132b4ad8eaa7cbe3f5f4e67048f302 100644 (file)
@@ -333,7 +333,8 @@ our $cmddef = {
     create => [ 'PMG::API2::Cluster', 'create', [], {}, $upid_exit],
     delete => [ __PACKAGE__, 'delete', ['cid']],
     join => [ __PACKAGE__, 'join', ['master_ip']],
-    join_cmd => [ __PACKAGE__, 'join_cmd', []],
+    'join-cmd' => [ __PACKAGE__, 'join_cmd', []],
+    join_cmd => { alias => 'join-cmd' },
     sync => [ __PACKAGE__, 'sync', []],
     promote => [ __PACKAGE__, 'promote', []],
     'update-fingerprints' => [ __PACKAGE__, 'update_fingerprints'],