Skip to content

Commit

Permalink
deprecate 'backend' (singular) option
Browse files Browse the repository at this point in the history
  • Loading branch information
dschep committed Feb 20, 2016
1 parent 6cbe309 commit f5c02e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ it's own configuration, stored in a key of it's own name. For example:

Note: versions prior to v1.0.0 used JSON instead of YAML.

Note: v0.2.1 and older supported only a single backend, to support old configuration files ntfy will still accept a single backend (a string instead of a list of strings) with the key 'backend'.

The available backends are in `ntfy.backends <ntfy.backends.html>`_,
include only the module name in your config (eg: ``pushbullet`` not
``ntfy.backends.pushbullet``).
Expand Down
2 changes: 2 additions & 0 deletions ntfy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def load_config(config_path=DEFAULT_CONFIG):
logger.warning("Both 'backend' and 'backends' in config, "
"ignoring 'backend'.")
else:
logger.warning(
"The 'backend' config option is deprecated, use 'backends'")
config['backends'] = [config['backend']]

return config

0 comments on commit f5c02e8

Please sign in to comment.