SWU: Fixed update configs without restart

This commit is contained in:
Gina Häußge 2017-01-19 14:07:04 +01:00
parent 0d76df2cd5
commit a948050c54

View file

@ -688,6 +688,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
target_restart_type = check["restart"]
elif "pip" in check:
target_restart_type = "octoprint"
else:
target_restart_type = None
# if our update requires a restart we have to determine which type
if restart_type is None or (restart_type == "octoprint" and target_restart_type == "environment"):