Merge lp:~joetalbott/charms/trusty/snappy-proposed-image-builder/fix_homedir_path into lp:~canonical-ci-engineering/charms/trusty/snappy-proposed-image-builder/trunk

Proposed by Joe Talbott
Status: Merged
Approved by: Joe Talbott
Approved revision: 9
Merged at revision: 9
Proposed branch: lp:~joetalbott/charms/trusty/snappy-proposed-image-builder/fix_homedir_path
Merge into: lp:~canonical-ci-engineering/charms/trusty/snappy-proposed-image-builder/trunk
Diff against target: 12 lines (+1/-1)
1 file modified
hooks/actions.py (+1/-1)
To merge this branch: bzr merge lp:~joetalbott/charms/trusty/snappy-proposed-image-builder/fix_homedir_path
Reviewer Review Type Date Requested Status
Thomi Richards (community) Approve
Review via email: mp+261157@code.launchpad.net

Commit message

Fix home directory path.

Description of the change

Fix home directory path.

To post a comment you must log in.
Revision history for this message
Thomi Richards (thomir-deactivatedaccount) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/actions.py'
2--- hooks/actions.py 2015-06-04 21:36:53 +0000
3+++ hooks/actions.py 2015-06-04 21:42:11 +0000
4@@ -71,7 +71,7 @@
5 adduser(username)
6
7 # create user's home directory if it doesn't exist.
8- home = os.path.exists(os.path.join('/home', username))
9+ home = os.path.join('/home', username)
10 try:
11 os.makedirs(home, 0o755)
12 except OSError as e:

Subscribers

People subscribed via source and target branches