@@ -305,7 +305,7 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
*/
@CLIMethod(name="connect-node")
publicvoidcliConnect(@Option(name="-f",usage="Cancel any currently pending connect operation and retry from scratch")booleanforce)throwsExecutionException,InterruptedException{
checkPermission(Jenkins.ADMINISTER);
checkPermission(CONNECT);
connect(force).get();
}
...
...
@@ -361,7 +361,7 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
*/
@CLIMethod(name="disconnect-node")
publicvoidcliDisconnect(@Option(name="-m",usage="Record the note about why you are disconnecting this node")Stringcause)throwsExecutionException,InterruptedException{
checkPermission(Jenkins.ADMINISTER);
checkPermission(DISCONNECT);
disconnect(newByCLI(cause)).get();
}
...
...
@@ -370,13 +370,13 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
*/
@CLIMethod(name="offline-node")
publicvoidcliOffline(@Option(name="-m",usage="Record the note about why you are disconnecting this node")Stringcause)throwsExecutionException,InterruptedException{