summaryrefslogtreecommitdiff
path: root/cloudinit/handlers/upstart_job.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-16 10:56:08 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-16 10:56:08 -0700
commit5597e947248ee7fbda17d3876206f1d45f97bc00 (patch)
tree05f455f7626acc9baeb52934411530316245b597 /cloudinit/handlers/upstart_job.py
parent1e6455899af5532314d7244bbc660a0e34a84eff (diff)
downloadvyos-cloud-init-5597e947248ee7fbda17d3876206f1d45f97bc00.tar.gz
vyos-cloud-init-5597e947248ee7fbda17d3876206f1d45f97bc00.zip
Make the top level __init__ similar to the other top level __inits__ where just util functions and base classes are defined there.
Diffstat (limited to 'cloudinit/handlers/upstart_job.py')
-rw-r--r--cloudinit/handlers/upstart_job.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/cloudinit/handlers/upstart_job.py b/cloudinit/handlers/upstart_job.py
index 059a4851..411a5d68 100644
--- a/cloudinit/handlers/upstart_job.py
+++ b/cloudinit/handlers/upstart_job.py
@@ -23,8 +23,8 @@
import os
+from cloudinit import handlers
from cloudinit import log as logging
-from cloudinit import user_data as ud
from cloudinit import util
from cloudinit.settings import (PER_INSTANCE)
@@ -32,18 +32,18 @@ from cloudinit.settings import (PER_INSTANCE)
LOG = logging.getLogger(__name__)
-class UpstartJobPartHandler(ud.PartHandler):
+class UpstartJobPartHandler(handlers.Handler):
def __init__(self, paths, **_kwargs):
- ud.PartHandler.__init__(self, PER_INSTANCE)
+ handlers.Handler.__init__(self, PER_INSTANCE)
self.upstart_dir = paths.upstart_conf_d
def list_types(self):
return [
- ud.type_from_starts_with("#upstart-job"),
+ handlers.type_from_starts_with("#upstart-job"),
]
def _handle_part(self, _data, ctype, filename, payload, frequency):
- if ctype in ud.CONTENT_SIGNALS:
+ if ctype in handlers.CONTENT_SIGNALS:
return
if not self.upstart_dir: