File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -301,13 +301,13 @@ def execute(self, **kwargs):
301301 except api_sdk .GradientSdkError as e :
302302 raise exceptions .ReceivingDataFailedError (e )
303303
304- self ._log_objects_list (instances )
304+ self ._log_objects_list (instances , kwargs )
305305
306- def _get_table_data (self , artifacts ):
306+ def _get_table_data (self , artifacts , kwargs ):
307307 columns = ['Files' ]
308- if self . kwargs .get ('size' ):
308+ if kwargs .get ('size' ):
309309 columns .append ('Size (in bytes)' )
310- if self . kwargs .get ('links' ):
310+ if kwargs .get ('links' ):
311311 columns .append ('URL' )
312312
313313 data = [tuple (columns )]
@@ -320,12 +320,12 @@ def _get_table_data(self, artifacts):
320320 data .append (tuple (row ))
321321 return data
322322
323- def _log_objects_list (self , objects ):
323+ def _log_objects_list (self , objects , kwargs ):
324324 if not objects :
325325 self .logger .warning ("No data found" )
326326 return
327327
328- table_data = self ._get_table_data (objects )
328+ table_data = self ._get_table_data (objects , kwargs )
329329 table_str = self ._make_table (table_data )
330330 if len (table_str .splitlines ()) > get_terminal_lines ():
331331 pydoc .pager (table_str )
You can’t perform that action at this time.
0 commit comments