summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-09-19 16:10:15 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-09-19 16:10:15 -0700
commit5eef154928c75499c545c8c242bcf11d9ccf70d1 (patch)
treec709136e2be587e45f2f019350f91ce6ae33b205
parentd4ca178d801983bcb43bafd18084c144b74a4c9a (diff)
downloadvyos-cloud-init-5eef154928c75499c545c8c242bcf11d9ccf70d1.tar.gz
vyos-cloud-init-5eef154928c75499c545c8c242bcf11d9ccf70d1.zip
First thing that we do after we can start importing
is to patch the functionality before it gets reimported.
-rwxr-xr-xbin/cloud-init3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/cloud-init b/bin/cloud-init
index 1f017475..b2a6c3ea 100755
--- a/bin/cloud-init
+++ b/bin/cloud-init
@@ -33,6 +33,9 @@ possible_topdir = os.path.normpath(os.path.join(os.path.abspath(
if os.path.exists(os.path.join(possible_topdir, "cloudinit", "__init__.py")):
sys.path.insert(0, possible_topdir)
+from cloudinit import patcher
+patcher.patch()
+
from cloudinit import log as logging
from cloudinit import netinfo
from cloudinit import sources