Skip to content

Commit

Permalink
Make lxd containers ephemeral. (#578)
Browse files Browse the repository at this point in the history
LP: #1577548
  • Loading branch information
evandandrea authored and come-maiz committed Jun 17, 2016
1 parent b2c6947 commit 038bf3f
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
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _create_container(self):
remote_tmp = petname.Generate(2, '-')
check_call(['lxc', 'remote', 'add', remote_tmp, self._server])
check_call([
'lxc', 'launch',
'lxc', 'launch', '-e',
'{}:ubuntu/xenial/{}'.format(
remote_tmp, self._project_options.deb_arch),
self._container_name])
Expand Down
2 changes: 1 addition & 1 deletion snapcraft/tests/test_lxd.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_cleanbuild(self, mock_pet, mock_call):
mock_call.assert_has_calls([
call(['lxc', 'remote', 'add', 'my-pet',
'https://images.linuxcontainers.org:8443']),
call(['lxc', 'launch',
call(['lxc', 'launch', '-e',
'my-pet:ubuntu/xenial/{}'.format(expected_arch),
'snapcraft-my-pet']),
call(['lxc', 'file', 'push', 'project.tar',
Expand Down

0 comments on commit 038bf3f

Please sign in to comment.