From bf049ddee424fa97a8bfe4e4525892b1e1873b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 21 Jul 2015 18:29:32 +0200 Subject: [PATCH] Fixed two swapped vars (cherry picked from commit 14c1069) --- src/octoprint/plugins/softwareupdate/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/plugins/softwareupdate/__init__.py b/src/octoprint/plugins/softwareupdate/__init__.py index d869f2ec..50c4df12 100644 --- a/src/octoprint/plugins/softwareupdate/__init__.py +++ b/src/octoprint/plugins/softwareupdate/__init__.py @@ -507,9 +507,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, # we can actually perform that if restart_type == "octoprint": - restart_command = self._settings.global_get(["server", "commands", "systemRestartCommand"]) - elif restart_type == "environment": restart_command = self._settings.global_get(["server", "commands", "serverRestartCommand"]) + elif restart_type == "environment": + restart_command = self._settings.global_get(["server", "commands", "systemRestartCommand"]) if restart_command is not None: self._send_client_message("restarting", dict(restart_type=restart_type, results=target_results))