summaryrefslogtreecommitdiff
path: root/cloudinit/cloud.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-16 13:19:15 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-16 13:19:15 -0700
commit8c227a784b948b98d35a386da5d203bd54ea35e5 (patch)
tree316d0006b3df6aa321e46cd67ccd387ab492adab /cloudinit/cloud.py
parent7d5a292d293e9ae4b06b6ee00926fe46b1d7ad73 (diff)
downloadvyos-cloud-init-8c227a784b948b98d35a386da5d203bd54ea35e5.tar.gz
vyos-cloud-init-8c227a784b948b98d35a386da5d203bd54ea35e5.zip
Add comment as to why the cloud object/wrapper is useful
Diffstat (limited to 'cloudinit/cloud.py')
-rw-r--r--cloudinit/cloud.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/cloudinit/cloud.py b/cloudinit/cloud.py
index 8372d123..a2a5cfdb 100644
--- a/cloudinit/cloud.py
+++ b/cloudinit/cloud.py
@@ -27,6 +27,16 @@ from cloudinit import log as logging
LOG = logging.getLogger(__name__)
+# This class is the high level wrapper that provides
+# access to cloud-init objects without exposing the stage objects
+# to handler and or transform manipulation. It allows for cloud
+# init to restrict what those types of user facing code may see
+# and or adjust (which helps avoid code messing with each other)
+#
+# It also provides util functions that avoid having to know
+# how to get a certain member from this submembers as well
+# as providing a backwards compatible object that can be maintained
+# while the stages/other objects can be worked on independently...
class Cloud(object):
def __init__(self, datasource, paths, cfg, distro, runners):