Skip to content

Commit 581b36c

Browse files
committed
Update services to new handler inputs
1 parent 3f4489a commit 581b36c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

kepconfig/connectivity/device.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ def auto_tag_gen(server, device_path, job_ttl = None) -> KepServiceResponse:
180180
"device_path" - path identifying device. Standard Kepware address decimal notation string including the
181181
device such as "channel1.device1"
182182
183+
"job_ttl" (optional) - Determines the number of seconds a job instance will exist following completion.
184+
183185
RETURNS:
184186
KepServiceReturn with the result of the service either Code 202 (Accepted) or 429 (Too Busy)
185187
@@ -191,7 +193,7 @@ def auto_tag_gen(server, device_path, job_ttl = None) -> KepServiceResponse:
191193
path_obj = kepconfig.path_split(device_path)
192194
try:
193195
url = server.url +channel._create_url(path_obj['channel']) + _create_url(path_obj['device']) + ATG_URL
194-
job = server._kep_service_execute(url, job_ttl)
196+
job = server._kep_service_execute(url, None, job_ttl)
195197
return job
196198
except KeyError as err:
197199
err_msg = 'Error: No {} identified in {} | Function: {}'.format(err,'device_path', inspect.currentframe().f_code.co_name)

kepconfig/datalogger/log_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,5 +202,5 @@ def reset_column_mapping_service(server, log_group, job_ttl = None) -> KepServic
202202
'''
203203

204204
url = server.url + _create_url(log_group) + SERVICES_ROOT + '/ResetColumnMapping'
205-
job = server._kep_service_execute(url, job_ttl)
205+
job = server._kep_service_execute(url, None, job_ttl)
206206
return job

0 commit comments

Comments
 (0)