diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 20:16:19 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 20:16:19 -0700 |
commit | 0bfb3f5e5b4475c1dcbdb5db95bfce97d97ffc6a (patch) | |
tree | a29919a04030ff091c02d4b2efaf8d185d74c469 | |
parent | 71e8036e6534afbb871e864dba988541652dc400 (diff) | |
download | vyos-cloud-init-0bfb3f5e5b4475c1dcbdb5db95bfce97d97ffc6a.tar.gz vyos-cloud-init-0bfb3f5e5b4475c1dcbdb5db95bfce97d97ffc6a.zip |
Rename user data obj, which is really a user data message object and add comments as to what the data items are used for
-rw-r--r-- | cloudinit/stages.py | 8 |
1 files 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 = [] |