summaryrefslogtreecommitdiff
path: root/cloud-init-run-module.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2010-02-03 18:09:48 -0500
committerScott Moser <smoser@ubuntu.com>2010-02-03 18:09:48 -0500
commitaed1c1e9fda1e78d19305e90f554d0dcb5388cd7 (patch)
tree7f0dd15537201ea49217ba6ec3040ede9b0426f4 /cloud-init-run-module.py
parentff522791cb2b58e83da4efea1be76757f05a1f1f (diff)
downloadvyos-cloud-init-aed1c1e9fda1e78d19305e90f554d0dcb5388cd7.tar.gz
vyos-cloud-init-aed1c1e9fda1e78d19305e90f554d0dcb5388cd7.zip
globally remove ec2init and rename to cloudinit
Diffstat (limited to 'cloud-init-run-module.py')
-rwxr-xr-xcloud-init-run-module.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/cloud-init-run-module.py b/cloud-init-run-module.py
index d2d4feee..de52f116 100755
--- a/cloud-init-run-module.py
+++ b/cloud-init-run-module.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
import sys
-import ec2init
+import cloudinit
def Usage(out = sys.stdout):
out.write("Usage: cloud-init-run-module freq sem-name mod-name [args]\n")
@@ -16,7 +16,7 @@ def main():
(freq,semname,modname)=sys.argv[1:4]
run_args=sys.argv[4:]
- cloud = ec2init.EC2Init()
+ cloud = cloudinit.EC2Init()
try:
cloud.get_data_source()
except Exception as e:
@@ -29,16 +29,16 @@ def main():
sys.exit(0)
try:
- mod = __import__('ec2init.' + modname)
+ mod = __import__('cloudinit.' + modname)
inst = getattr(mod,modname)
except:
- sys.stderr.write("Failed to load module ec2init.%s\n" % modname)
+ sys.stderr.write("Failed to load module cloudinit.%s\n" % modname)
sys.exit(1)
import os
cfg_path = None
- cfg_env_name = ec2init.cfg_env_name
+ cfg_env_name = cloudinit.cfg_env_name
if os.environ.has_key(cfg_env_name):
cfg_path = os.environ[cfg_env_name]