~cloud-init-dev/cloud-init/trunk

« back to all changes in this revision

Viewing changes to cloudinit/config/cc_resizefs.py

  • Committer: Scott Moser
  • Date: 2014-09-16 00:27:31 UTC
  • mfrom: (1000.3.3 bug-1338614)
  • Revision ID: smoser@ubuntu.com-20140916002731-cvnbqhw04reaf8t5
resizefs: fix backgrounded resizing

add kwargs to fork_cb, and utilize that to call log_time and pass through
the provided args to resize_cmd.

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
        # Fork to a child that will run
163
163
        # the resize command
164
164
        util.fork_cb(
165
 
            util.log_time(logfunc=log.debug, msg="backgrounded Resizing",
166
 
                func=do_resize, args=(resize_cmd, log)))
 
165
            util.log_time, logfunc=log.debug, msg="backgrounded Resizing",
 
166
            func=do_resize, args=(resize_cmd, log))
167
167
    else:
168
168
        util.log_time(logfunc=log.debug, msg="Resizing",
169
169
            func=do_resize, args=(resize_cmd, log))