Skip to content

Commit

Permalink
Merge branch 'use-wraps' of https://github.com/ssanderson/docker-py i…
Browse files Browse the repository at this point in the history
…nto ssanderson-use-wraps
  • Loading branch information
shin- committed Jun 18, 2015
2 parents f2bdd01 + a7c15a8 commit cd5c8c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/utils/decorators.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from functools import wraps
from .. import errors


def check_resource(f):

@wraps(f)
def wrapped(self, resource_id=None, *args, **kwargs):
if resource_id is None:
if kwargs.get('container'):
Expand Down

0 comments on commit cd5c8c5

Please sign in to comment.