Skip to content

Commit

Permalink
Merge pull request #4 from hjoliver/more-meta-mods
Browse files Browse the repository at this point in the history
Allow plain "URL" in event handler templates.
  • Loading branch information
challurip authored Aug 15, 2017
2 parents cf0b8f5 + 9c9c520 commit ff3187a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/cylc/suite_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ def _run_event_custom_handlers(self, config, ctx):
if config.cfg['meta']:
for key, value in config.cfg['meta'].items():
if key == "URL":
# Back compat (pre meta section).
handler_data["suite_url"] = quote(value)
else:
handler_data[key] = quote(value)
handler_data[key] = quote(value)
cmd = handler % (handler_data)
except KeyError as exc:
message = "%s bad template: %s" % (cmd_key, exc)
Expand Down
4 changes: 2 additions & 2 deletions lib/cylc/task_events_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,9 +836,9 @@ def _setup_custom_event_handlers(self, itask, event, message):
if itask.tdef.rtconfig['meta']:
for key, value in itask.tdef.rtconfig['meta'].items():
if key == "URL":
# Back compat (pre meta section).
handler_data["task_url"] = quote(value)
else:
handler_data[key] = quote(value)
handler_data[key] = quote(value)

cmd = handler % (handler_data)
except KeyError as exc:
Expand Down

0 comments on commit ff3187a

Please sign in to comment.