pingsutw opened a new pull request #323:
URL: https://github.com/apache/submarine/pull/323


   ### What is this PR for?
   Fix get_log error when the experiment is not started
   ```bash
   IndexError                                Traceback (most recent call last)
   <ipython-input-13-8bf55eff97d1> in <module>
   ----> 1 
submarine_client.get_log(id)~/opt/anaconda3/envs/python3-7/lib/python3.7/site-packages/submarine/experiment/api/experiment_client.py
 in get_log(self, id, master)
       124 
       125         if master is True:
   --> 126             log_contents = [log_contents[0]]
       127 
       128         for log_content in log_contents:IndexError: list index out 
of range
   ```
   
   ### What type of PR is it?
   [Bug Fix]
   
   ### Todos
   * [ ] - Task
   
   ### What is the Jira issue?
   https://issues.apache.org/jira/browse/SUBMARINE-542
   
   ### How should this be tested?
   https://travis-ci.org/github/pingsutw/hadoop-submarine/builds/701089803
   
   ### Screenshots (if appropriate)
   
   ### Questions:
   * Does the licenses files need update? No
   * Is there breaking changes for older versions? No
   * Does this needs documentation? No
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to