Merge lp:~frankban/lpsetup/install-lxc-stops-lxc into lp:lpsetup
Proposed by
Francesco Banconi
Status: | Merged |
---|---|
Approved by: | Gary Poster |
Approved revision: | 59 |
Merged at revision: | 59 |
Proposed branch: | lp:~frankban/lpsetup/install-lxc-stops-lxc |
Merge into: | lp:lpsetup |
Diff against target: |
62 lines (+6/-6) 3 files modified
lpsetup/subcommands/initlxc.py (+2/-2) lpsetup/subcommands/install_lxc.py (+2/-2) lpsetup/tests/subcommands/test_install_lxc.py (+2/-2) |
To merge this branch: | bzr merge lp:~frankban/lpsetup/install-lxc-stops-lxc |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gary Poster (community) | Approve | ||
Review via email: mp+116250@code.launchpad.net |
Commit message
install-lxc can stop the container at the end of the process
Description of the change
== Changes ==
Moved the *stop_lxc* step so that it is the last step executed by install-lxc.
To post a comment you must log in.
Hi Francesco. This looks fine, and I'll approve it in order to move the card along in your absence. That said, I do wonder why you arranged the tuples the way you did. I'd be inclined to slightly simplify things as follows:
=== modified file 'lpsetup/ subcommands/ install_ lxc.py' subcommands/ install_ lxc.py 2012-07-20 16:18:59 +0000 subcommands/ install_ lxc.py 2012-07-23 18:31:43 +0000
'external_ path', 'target_dir', 'use_http'),
(finish_ inithost_ in_lxc, 'lxc_name', 'ssh_key_path', 'home_dir', SubCommand. stop_lxc_ step,) SubCommand. stop_lxc_ step,)
--- lpsetup/
+++ lpsetup/
@@ -120,7 +120,8 @@
'user', 'target_dir'),
- ) + (initlxc.
+ # Run on host:
+ initlxc.
help = __doc__
=== modified file 'lpsetup/ tests/subcomman ds/test_ install_ lxc.py' tests/subcomman ds/test_ install_ lxc.py 2012-07-20 16:18:59 +0000 tests/subcomman ds/test_ install_ lxc.py 2012-07-23 18:31:17 +0000
init_ repo_in_ lxc_step,
update_ in_lxc_ step,
finish_ inithost_ in_lxc_ step, stop_lxc_ step,) stop_lxc_ step,)
--- lpsetup/
+++ lpsetup/
@@ -61,6 +61,6 @@
- ) + (test_initlxc.
+ test_initlxc.
needs_root = True
maxDiff = None