Merge lp:~jason-oldos/cloud-init/bug-1338614 into lp:~cloud-init-dev/cloud-init/trunk

Proposed by Jay Faulkner
Status: Merged
Merged at revision: 1018
Proposed branch: lp:~jason-oldos/cloud-init/bug-1338614
Merge into: lp:~cloud-init-dev/cloud-init/trunk
Diff against target: 37 lines (+8/-3) (has conflicts)
2 files modified
cloudinit/config/cc_resizefs.py (+2/-2)
cloudinit/util.py (+6/-1)
Text conflict in cloudinit/util.py
To merge this branch: bzr merge lp:~jason-oldos/cloud-init/bug-1338614
Reviewer Review Type Date Requested Status
cloud-init Commiters Pending
Review via email: mp+234749@code.launchpad.net

Description of the change

To post a comment you must log in.
1009. By Jay Faulkner

Remove pylint: lines

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'cloudinit/config/cc_resizefs.py'
--- cloudinit/config/cc_resizefs.py 2014-09-08 16:50:22 +0000
+++ cloudinit/config/cc_resizefs.py 2014-09-15 22:10:49 +0000
@@ -162,8 +162,8 @@
162 # Fork to a child that will run162 # Fork to a child that will run
163 # the resize command163 # the resize command
164 util.fork_cb(164 util.fork_cb(
165 util.log_time(logfunc=log.debug, msg="backgrounded Resizing",165 util.log_time, logfunc=log.debug, msg="backgrounded Resizing",
166 func=do_resize, args=(resize_cmd, log)))166 func=do_resize, args=(resize_cmd, log))
167 else:167 else:
168 util.log_time(logfunc=log.debug, msg="Resizing",168 util.log_time(logfunc=log.debug, msg="Resizing",
169 func=do_resize, args=(resize_cmd, log))169 func=do_resize, args=(resize_cmd, log))
170170
=== modified file 'cloudinit/util.py'
--- cloudinit/util.py 2014-08-26 19:53:41 +0000
+++ cloudinit/util.py 2014-09-15 22:10:49 +0000
@@ -191,12 +191,17 @@
191 return fh191 return fh
192192
193193
194def fork_cb(child_cb, *args):194def fork_cb(child_cb, *args, **kwargs):
195 fid = os.fork()195 fid = os.fork()
196 if fid == 0:196 if fid == 0:
197 try:197 try:
198<<<<<<< TREE
198 child_cb(*args)199 child_cb(*args)
199 os._exit(0)200 os._exit(0)
201=======
202 child_cb(*args, **kwargs)
203 os._exit(0)
204>>>>>>> MERGE-SOURCE
200 except:205 except:
201 logexc(LOG, "Failed forking and calling callback %s",206 logexc(LOG, "Failed forking and calling callback %s",
202 type_utils.obj_name(child_cb))207 type_utils.obj_name(child_cb))