Skip to content

Commit

Permalink
Merge pull request #241 from datmo/run-image
Browse files Browse the repository at this point in the history
not allowing removal of images after the run
  • Loading branch information
asampat3090 committed Jul 20, 2018
2 parents 15c06bf + f5a3578 commit 10ec5fd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions datmo/core/controller/environment/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,6 @@ def stop(self,
all_match_string = "datmo-task-" + self.model.id
stop_success = self.environment_driver.stop_remove_containers_by_term(
term=all_match_string, force=True)
# Remove artifacts associated with the environment_driver
if environment_id:
self.environment_driver.remove(environment_id, force=True)
return stop_success

def exists(self, environment_id=None, environment_unique_hash=None):
Expand Down
9 changes: 0 additions & 9 deletions datmo/core/controller/environment/tests/test_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,15 +943,6 @@ def test_stop_success(self):

assert return_code

# 4) Test option 4
failed = False
try:
_, _, _ = \
self.environment_controller.run(environment_obj.id, run_options_2, log_filepath)
except EnvironmentExecutionError:
failed = True
assert failed

def test_exists(self):
# Test failure, not initialized
failed = False
Expand Down

0 comments on commit 10ec5fd

Please sign in to comment.