summaryrefslogtreecommitdiff
path: root/cloudinit/__init__.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-06-17 11:03:49 -0400
committerScott Moser <smoser@ubuntu.com>2011-06-17 11:03:49 -0400
commit03804622f0fa6963ddfe9fa9292b28653665365a (patch)
tree6ee5335312c214806dd9f575680499b39d10fedf /cloudinit/__init__.py
parenta8cd78271c23e13f178aa0d1ee90f8ae5ff640f4 (diff)
downloadvyos-cloud-init-03804622f0fa6963ddfe9fa9292b28653665365a.tar.gz
vyos-cloud-init-03804622f0fa6963ddfe9fa9292b28653665365a.zip
make the "cloud-config ready" command configurable (LP: #785551)
Previously, when cloud-config was ready, cloud-init would emit an upstart event with: initctl emit cloud-config Now, that command is configurable via the 'cc_ready_cmd' value in cloud.cfg or user data. The default behavior is not changed. LP: #785551
Diffstat (limited to 'cloudinit/__init__.py')
-rw-r--r--cloudinit/__init__.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/cloudinit/__init__.py b/cloudinit/__init__.py
index ab0a834a..82dfaa8f 100644
--- a/cloudinit/__init__.py
+++ b/cloudinit/__init__.py
@@ -243,11 +243,6 @@ class CloudInit:
util.write_file(self.get_ipath('userdata'),
self.datasource.get_userdata(), 0600)
- def initctl_emit(self):
- cc_path = get_ipath_cur('cloud_config')
- subprocess.Popen(['initctl', 'emit', 'cloud-config',
- '%s=%s' % (cfg_env_name,cc_path)]).communicate()
-
def sem_getpath(self,name,freq):
if freq == 'once-per-instance':
return("%s/%s" % (self.get_ipath("sem"),name))