File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed
Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -159,28 +159,10 @@ def send_resource_to_datastore(
159159 "calculate_record_count" : calculate_record_count ,
160160 }
161161 try :
162-
163- from pprint import pformat # DEBUG
164- import logging # DEBUG
165- log = logging .getLogger (__name__ ) # DEBUG
166- if resource is None : # DEBUG
167- resource = tk .get_action ("resource_show" )(context , {'id' :resource_id }) # DEBUG
168- package_id = resource ['package_id' ] # DEBUG
169- result = tk .get_action ("package_show" )(context , {'id' :package_id }) # DEBUG
170- log .error ('XXX BEFORE' ) # DEBUG
171- log .error (pformat (result )) # DEBUG
172-
173-
174-
175-
162+ return # DEBUG
176163 resource_dict = tk .get_action ("datastore_create" )(
177164 {"ignore_auth" : True }, request
178165 )
179-
180- result = tk .get_action ("package_show" )(context , {'id' :package_id }) # DEBUG
181- log .error ('XXX AFTER' ) # DEBUG
182- log .error (pformat (result )) # DEBUG
183-
184166 return resource_dict
185167 except Exception as e :
186168 raise utils .JobError ("Error sending data to datastore ({!s})." .format (e ))
You can’t perform that action at this time.
0 commit comments