Diff
1diff --git a/plugins/glassfish/_asadmin b/plugins/glassfish/_asadmin
2index b29d65d3b1e71157d507e5bb2e6a9782fd8defb7..32b15b61df499d38ee60600d3507f5dac320f6a6 100644
3--- a/plugins/glassfish/_asadmin
4+++ b/plugins/glassfish/_asadmin
5@@ -559,13 +559,13 @@ case "$words[1]" in
6 _command_args=('--host+:' '--port+:' '--target+:')
7 ;;
8 delete-node-config)
9- _command_args=('--host+:' '--port+:')
10+ _command_args=('*:nodes:_asadmin_nodes_config' '--host+:' '--port+:')
11 ;;
12 delete-node-dcom)
13- _command_args=('--force+:force:(true false)' '--host+:' '--port+:' '--uninstall+:uninstall:(true false)')
14+ _command_args=('*:nodes:_asadmin_nodes_dcom' '--force+:force:(true false)' '--host+:' '--port+:' '--uninstall+:uninstall:(true false)')
15 ;;
16 delete-node-ssh)
17- _command_args=('--force+:force:(true false)' '--host+:' '--port+:' '--uninstall+:uninstall:(true false)')
18+ _command_args=('*:nodes:_asadmin_nodes_ssh' '--force+:force:(true false)' '--host+:' '--port+:' '--uninstall+:uninstall:(true false)')
19 ;;
20 delete-password-alias)
21 _command_args=('--host+:' '--port+:')
22@@ -889,10 +889,10 @@ case "$words[1]" in
23 _command_args=('--appname+:' '--host+:' '--modulename+:' '--port+:' '--target+:')
24 ;;
25 ping-node-dcom)
26- _command_args=('--host+:' '--port+:' '--validate+:validate:(true false)')
27+ _command_args=('*:nodes:_asadmin_nodes_dcom' '--host+:' '--port+:' '--validate+:validate:(true false)')
28 ;;
29 ping-node-ssh)
30- _command_args=('--host+:' '--port+:' '--validate+:validate:(true false)')
31+ _command_args=('*:nodes:_asadmin_nodes_ssh' '--host+:' '--port+:' '--validate+:validate:(true false)')
32 ;;
33 recover-transactions)
34 _command_args=('--host+:' '--port+:' '--target+:' '--transactionlogdir+:')
35@@ -1006,13 +1006,13 @@ case "$words[1]" in
36 _command_args=('--authrealmname+:' '--groups+:' '--host+:' '--port+:' '--target+:' '--userpassword+:')
37 ;;
38 update-node-config)
39- _command_args=('--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:')
40+ _command_args=('*:nodes:_asadmin_nodes_config' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:')
41 ;;
42 update-node-dcom)
43- _command_args=('--force+:force:(true false)' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:')
44+ _command_args=('*:nodes:_asadmin_nodes_dcom' '--force+:force:(true false)' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:')
45 ;;
46 update-node-ssh)
47- _command_args=('--force+:force:(true false)' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--sshkeyfile+:' '--sshkeypassphrase+:' '--sshpassword+:' '--sshport+:' '--sshuser+:')
48+ _command_args=('*:nodes:_asadmin_nodes_ssh' '--force+:force:(true false)' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--sshkeyfile+:' '--sshkeypassphrase+:' '--sshpassword+:' '--sshport+:' '--sshuser+:')
49 ;;
50 update-password-alias)
51 _command_args=('--aliaspassword+:' '--host+:' '--port+:')
52@@ -1047,6 +1047,18 @@ _asadmin_nodes() {
53 compadd $(command asadmin list-nodes --terse)
54 }
55
56+_asadmin_nodes_config() {
57+ compadd $(command asadmin list-nodes-config --terse)
58+}
59+
60+_asadmin_nodes_dcom() {
61+ compadd $(command asadmin list-nodes-dcom --terse)
62+}
63+
64+_asadmin_nodes_ssh() {
65+ compadd $(command asadmin list-nodes-ssh --terse)
66+}
67+
68 compadd '--help'
69 _arguments \
70 $_command_args \