Revision a8ae3eb5 scripts/gnt-node
b/scripts/gnt-node | ||
---|---|---|
100 | 100 |
output = cl.QueryConfigValues(['cluster_name']) |
101 | 101 |
cluster_name = output[0] |
102 | 102 |
|
103 |
if readd: |
|
104 |
# clear the offline and drain flags on the node |
|
105 |
ToStdout("Resetting the 'offline' and 'drained' flags due to re-add") |
|
106 |
op = opcodes.OpSetNodeParams(node_name=node, force=True, |
|
107 |
offline=False, drained=False) |
|
108 |
|
|
109 |
result = SubmitOpCode(op, cl=cl) |
|
110 |
if result: |
|
111 |
ToStdout("Modified:") |
|
112 |
for param, data in result: |
|
113 |
ToStdout(" - %-5s -> %s", param, data) |
|
114 |
else: |
|
103 |
if not readd: |
|
115 | 104 |
ToStderr("-- WARNING -- \n" |
116 | 105 |
"Performing this operation is going to replace the ssh daemon" |
117 | 106 |
" keypair\n" |
Also available in: Unified diff