Skip to content

Commit

Permalink
Merge branch 'main' of github.com:canonical/ops-scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
PietroPasotti committed Sep 8, 2023
2 parents 3cb7c40 + 5254273 commit e0fe5cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "ops-scenario"

version = "5.1.2"
version = "5.1.3"

authors = [
{ name = "Pietro Pasotti", email = "pietro.pasotti@canonical.com" }
Expand Down
4 changes: 3 additions & 1 deletion scenario/mocking.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# See LICENSE file for licensing details.
import datetime
import random
import shutil
from io import StringIO
from pathlib import Path
from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Tuple, Union
Expand Down Expand Up @@ -414,7 +415,8 @@ def __init__(

# wipe just in case
if container_root.exists():
container_root.rmdir()
# Path.rmdir will fail if root is nonempty
shutil.rmtree(container_root)

# initialize simulated filesystem
container_root.mkdir(parents=True)
Expand Down

0 comments on commit e0fe5cd

Please sign in to comment.