Skip to content

Commit 83fa1ec

Browse files
committed
Fix borked merge
1 parent 9631524 commit 83fa1ec

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

contrib/linux/sensors/file_watch_sensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def remove_trigger(self, trigger):
446446
file_path = trigger["parameters"].get("file_path", None)
447447

448448
if not file_path:
449-
self.log.error('Received trigger type without "file_path" field.')
449+
self.log.error("Received trigger type without 'file_path' field.")
450450
return
451451

452452
self.tail_manager.stop_tailing_file(file_path, self._handle_line)
@@ -470,7 +470,7 @@ def _handle_line(self, file_path, line):
470470
self.log.debug(
471471
f"Sending payload {payload} for trigger {trigger} to sensor_service."
472472
)
473-
self.sensor_service.dispatch(trigger=self.trigger, payload=payload)
473+
self.sensor_service.dispatch(trigger=trigger, payload=payload)
474474

475475

476476
if __name__ == "__main__":

st2actions/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ gitpython<=3.1.37
1313
jinja2==2.11.3
1414
kombu==5.0.2
1515
lockfile==0.12.2
16-
logshipper@ git+https://github.com/StackStorm/logshipper.git@stackstorm_patched ; platform_system=="Linux"
1716
oslo.config>=1.12.1,<1.13
1817
oslo.utils<5.0,>=4.0.0
1918
pyparsing<3

0 commit comments

Comments
 (0)