From 823b7be3f8eb90664cd8ebdfd532370b27c1f03f Mon Sep 17 00:00:00 2001 From: make-ing Date: Tue, 15 Sep 2015 12:13:21 +0200 Subject: [PATCH] added default value for current to None --- src/octoprint/plugins/softwareupdate/__init__.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/octoprint/plugins/softwareupdate/__init__.py b/src/octoprint/plugins/softwareupdate/__init__.py index 6d039f0d..5ab0f57e 100644 --- a/src/octoprint/plugins/softwareupdate/__init__.py +++ b/src/octoprint/plugins/softwareupdate/__init__.py @@ -132,7 +132,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, "user": "mrbeam", "branch": "grblautoupdate", "update_script": "{{python}} \"{update_script}\" --python=\"{{python}}\" \"{{folder}}\" {{target}}".format(update_script=os.path.join(self._basefolder, "scripts", "update-octoprint.py")), - "restart": "octoprint" + "restart": "octoprint", + "current": None }, "svgtogcode": { "checkout_folder": "/home/pi/mrbeam-inkscape-ext", @@ -140,7 +141,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, "repo": "mrbeam-inkscape-ext", "user": "mrbeam", "branch": "stable-1.2.2", - "update_script": "{{python}} \"{update_script}\" \"{{folder}}\" {{target}}".format(update_script=os.path.join(self._basefolder, "scripts", "git-pull.py")) + "update_script": "{{python}} \"{update_script}\" \"{{folder}}\" {{target}}".format(update_script=os.path.join(self._basefolder, "scripts", "git-pull.py")), + "current": None }, "lcd": { "checkout_folder": "/home/pi/lcd", @@ -149,7 +151,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, "user": "mrbeam", "branch": "stable-1.2.2", "update_script": "{{python}} \"{update_script}\" \"{{folder}}\" {{target}}".format(update_script=os.path.join(self._basefolder, "scripts", "git-pull.py")), - "restart": "environment" + "restart": "environment", + "current": None }, "netconnectd": { "checkout_folder": "/home/pi/netconnectd", @@ -158,7 +161,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, "user": "mrbeam", "branch": "stable-1.2.2", "update_script": "{{python}} \"{update_script}\" \"{{folder}}\" {{target}}".format(update_script=os.path.join(self._basefolder, "scripts", "git-pull.py")), - "restart": "environment" + "restart": "environment", + "current": None }, },