def assure_check(fnc):
 @wraps(fnc)
 def _wrapped(self, check, *args, **kwargs):
  if (not isinstance(check, CloudMonitorCheck)):
   check = self._check_manager.get(check)
  return fnc(self, check, *args, **kwargs)
 return _wrapped

def assure_check ( fnc ) : @ wraps ( fnc ) def _wrapped ( self , check , * args , ** kwargs ) : if ( not isinstance ( check , CloudMonitorCheck ) ) : check = self . _check_manager . get ( check ) return fnc ( self , check , * args , ** kwargs ) return _wrapped
converts an checkid passed as the check to a cloudmonitorcheck object .