Skip to content

Commit

Permalink
lxd: path cannot have extra forward slashes (#1483)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalikiana authored and sergiusens committed Aug 15, 2017
1 parent 024b920 commit 1a3c02b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snapcraft/internal/lxd.py
Expand Up @@ -317,7 +317,7 @@ def _ensure_mount(self, destination, source):
check_call([
'lxc', 'config', 'device', 'add', self._container_name,
destination, 'disk', 'source={}'.format(source),
'path=/{}'.format(destination)])
'path={}'.format(destination)])

def _finish(self):
# Nothing to do
Expand Down
2 changes: 1 addition & 1 deletion snapcraft/tests/commands/test_snap.py
Expand Up @@ -156,7 +156,7 @@ def test_snap_containerized(self,
call(['lxc', 'start', container_name]),
call(['lxc', 'config', 'device', 'add', container_name,
project_folder, 'disk', 'source={}'.format(source),
'path=/{}'.format(project_folder)]),
'path={}'.format(project_folder)]),
call(['lxc', 'stop', '-f', container_name]),
])
mock_container_run.assert_has_calls([
Expand Down

0 comments on commit 1a3c02b

Please sign in to comment.