Register graceful shutdown for list groups command

Change-Id: Ie9d336a9bc278b21026b7094387d5b9d40a053e8
This commit is contained in:
Thomas Draebing
2020-08-12 15:36:50 +02:00
committed by Matthias Sohn
parent b016e3acf9
commit 42e806ed66

View File

@@ -52,6 +52,7 @@ public class ListGroupsCommand extends SshCommand {
@Override
public void run() throws Exception {
enableGracefulStop();
if (listGroups.getUser() != null && !listGroups.getProjects().isEmpty()) {
throw die("--user and --project options are not compatible.");
}