Fixed two swapped vars
This commit is contained in:
1 parent
21350fa95a
commit
14c1069e41
1 file changed
+2
-2
@@ -520,9 +520,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
|||||||
# we can actually perform that
|
# we can actually perform that
|
||||||
|
|
||||||
if restart_type == "octoprint":
|
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"])
|
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:
|
if restart_command is not None:
|
||||||
self._send_client_message("restarting", dict(restart_type=restart_type, results=target_results))
|
self._send_client_message("restarting", dict(restart_type=restart_type, results=target_results))
|
||||||
|
|||||||
Reference in new issue
Block a user