From 0bfb3f5e5b4475c1dcbdb5db95bfce97d97ffc6a Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sat, 16 Jun 2012 20:16:19 -0700 Subject: Rename user data obj, which is really a user data message object and add comments as to what the data items are used for --- cloudinit/stages.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cloudinit/stages.py b/cloudinit/stages.py index 24a4d23f..70f2bcc9 100644 --- a/cloudinit/stages.py +++ b/cloudinit/stages.py @@ -306,7 +306,7 @@ class Init(object): sys.path.insert(0, idir) # Ensure datasource fetched before activation (just incase) - ud_obj = self.datasource.get_userdata() + user_data_msg = self.datasource.get_userdata() # This keeps track of all the active handlers c_handlers = helpers.ContentHandlers() @@ -340,15 +340,17 @@ class Init(object): # Walk the user data part_data = { 'handlers': c_handlers, + # Any new handlers that are encountered get writen here 'handlerdir': idir, - 'data': data, + 'data': data, + # The default frequency if handlers don't have one 'frequency': frequency, # This will be used when new handlers are found # to help write there contents to files with numbered # names... 'handlercount': 0, } - handlers.walk(ud_obj, handlers.walker_callback, data=part_data) + handlers.walk(user_data_msg, handlers.walker_callback, data=part_data) # Give callbacks opportunity to finalize called = [] -- cgit v1.2.3