diff options
author | Austin S. Hemmelgarn <ahferroin7@gmail.com> | 2018-06-05 15:08:29 -0400 |
---|---|---|
committer | Austin S. Hemmelgarn <ahferroin7@gmail.com> | 2018-06-11 07:51:49 -0400 |
commit | 6f2abd371fd6ee684fe5419e91284acd38ad4105 (patch) | |
tree | b5a6791433cf4b638bdbafbd6c35b99985e27f47 /python.d/python_modules | |
parent | 37babce6355b303d813a9a4cd6eadbddfdcea873 (diff) |
Fixed format string issue.
Diffstat (limited to 'python.d/python_modules')
-rw-r--r-- | python.d/python_modules/third_party/boinc_client.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/python.d/python_modules/third_party/boinc_client.py b/python.d/python_modules/third_party/boinc_client.py index 7707989197..04068dd91d 100644 --- a/python.d/python_modules/third_party/boinc_client.py +++ b/python.d/python_modules/third_party/boinc_client.py @@ -711,9 +711,7 @@ class BoincClient(object): component = component.replace('cpu', 'run') component = component.replace('net', 'network') try: - reply = self.rpc.call("<set_{0}_mode>" - "<{1}/><duration>{2]</duration>" - "</set_{0}_mode>".format(component, RunMode.name(mode).lower(), duration)) + reply = self.rpc.call("<set_{0}_mode><{1}/>\n<duration>{2]</duration>\n</set_{0}_mode>".format(component, RunMode.name(mode).lower(), duration)) return (reply.tag == 'success') except socket.error: return False |