Skip to content

Commit

Permalink
Merge pull request #75 from ottogroup/feature/get-metadata-decorators
Browse files Browse the repository at this point in the history
Allow pluggable decoration of get_metadata
  • Loading branch information
alattner committed Apr 27, 2018
2 parents d55639f + ab32c5c commit 9b6867f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions palladium/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ def wrapper(*args, **kwargs):
return wraps(func)(wrapper)


@PluggableDecorator('get_metadata_decorators')
def get_metadata(error_code=0, error_message=None, status='OK'):
metadata = {
'status': status,
Expand Down

0 comments on commit 9b6867f

Please sign in to comment.