Skip to content

Commit

Permalink
ensure we create a temporary lvm mountpoint if no mountpoint is speci…
Browse files Browse the repository at this point in the history
…fied
  • Loading branch information
abg committed Jun 8, 2010
1 parent a1113f0 commit b24216a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -47,7 +47,7 @@ def build_snapshot(config, logical_volume):
)
mountpoint = config['snapshot-mountpoint']
tempdir = False
if mountpoint is None:
if not mountpoint:
tempdir = True
mountpoint = tempfile.mkdtemp()
snapshot = Snapshot(name, int(size), mountpoint)
Expand Down
Expand Up @@ -45,7 +45,7 @@ def build_snapshot(config, logical_volume):
)
mountpoint = config['snapshot-mountpoint']
tempdir = False
if mountpoint is None:
if not mountpoint:
tempdir = True
mountpoint = tempfile.mkdtemp()
snapshot = Snapshot(name, size, mountpoint)
Expand Down

0 comments on commit b24216a

Please sign in to comment.