SWU: Do not overwrite check information again
Current version information of OctoPrint from a check definition could be overwritten for checks under certain circumstances.
This commit is contained in:
parent
b56ba6589c
commit
43ca4d8252
1 changed files with 0 additions and 7 deletions
|
|
@ -689,13 +689,6 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
|||
if not "type" in check:
|
||||
raise exceptions.ConfigurationInvalid("no check type defined")
|
||||
|
||||
if target == "octoprint":
|
||||
from octoprint._version import get_versions
|
||||
from flask.ext.babel import gettext
|
||||
check["displayName"] = gettext("OctoPrint")
|
||||
check["displayVersion"] = "{octoprint_version}"
|
||||
check["current"] = get_versions()["version"]
|
||||
|
||||
check_type = check["type"]
|
||||
if check_type == "github_release":
|
||||
return version_checks.github_release
|
||||
|
|
|
|||
Loading…
Reference in a new issue