summaryrefslogtreecommitdiff
path: root/cloudinit/handlers/shell_script.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/shell_script.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/shell_script.py')
-rw-r--r--cloudinit/handlers/shell_script.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/cloudinit/handlers/shell_script.py b/cloudinit/handlers/shell_script.py
index f6e2ef16..a9d8e544 100644
--- a/cloudinit/handlers/shell_script.py
+++ b/cloudinit/handlers/shell_script.py
@@ -22,8 +22,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_ALWAYS)
@@ -31,18 +31,18 @@ from cloudinit.settings import (PER_ALWAYS)
LOG = logging.getLogger(__name__)
-class ShellScriptPartHandler(ud.PartHandler):
+class ShellScriptPartHandler(handlers.Handler):
def __init__(self, paths, **_kwargs):
- ud.PartHandler.__init__(self, PER_ALWAYS)
+ handlers.Handler.__init__(self, PER_ALWAYS)
self.script_dir = paths.get_ipath_cur('scripts')
def list_types(self):
return [
- ud.type_from_starts_with("#!"),
+ handlers.type_from_starts_with("#!"),
]
def _handle_part(self, _data, ctype, filename, payload, _frequency):
- if ctype in ud.CONTENT_SIGNALS:
+ if ctype in handlers.CONTENT_SIGNALS:
# TODO: maybe delete existing things here
return