From 12e9d33bfae5294e3870dfd1202f63383ad05e92 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 13 Sep 2013 17:31:54 +0100 Subject: cooker: Rename confusing 'stop' state to 'forceshutdown' The shutdown state causes the server to finish what its doing, stop was them meant to completely stop it. It doesn't mean the server is stopped though. Renaming the current stop event for forceshutdown gives more meaning to what it actually does. The stopped namespace then becomes available to indicate a completely stopped server. Signed-off-by: Richard Purdie --- lib/bb/command.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/bb/command.py') diff --git a/lib/bb/command.py b/lib/bb/command.py index 3527ad03c..641cc7061 100644 --- a/lib/bb/command.py +++ b/lib/bb/command.py @@ -137,13 +137,13 @@ class CommandsSync: """ Trigger cooker 'shutdown' mode """ - command.cooker.shutdown() + command.cooker.shutdown(False) - def stateStop(self, command, params): + def stateForceShutdown(self, command, params): """ Stop the cooker """ - command.cooker.stop() + command.cooker.shutdown(True) def getVariable(self, command, params): """ -- cgit 1.2.3-korg