Merge branch 'use-wraps' of https://github.com/ssanderson/docker-py into ssanderson-use-wraps

This commit is contained in:
Joffrey F 2015-06-18 21:23:03 +02:00
commit cd5c8c593a
1 changed files with 3 additions and 0 deletions

View File

@ -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'):