mirror of https://github.com/docker/docker-py.git
Merge branch 'ssanderson-use-wraps'
This commit is contained in:
commit
414d90122f
|
@ -1,7 +1,11 @@
|
|||
import functools
|
||||
|
||||
from .. import errors
|
||||
|
||||
|
||||
def check_resource(f):
|
||||
|
||||
@functools.wraps(f)
|
||||
def wrapped(self, resource_id=None, *args, **kwargs):
|
||||
if resource_id is None:
|
||||
if kwargs.get('container'):
|
||||
|
|
Loading…
Reference in New Issue