summaryrefslogtreecommitdiff
path: root/cloudinit/handlers/upstart_job.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-07-24 11:04:34 -0400
committerScott Moser <smoser@ubuntu.com>2013-07-24 11:04:34 -0400
commit82397d79f1c0618f25eab6e28e65b1e59a98603a (patch)
tree282753410e972115da387fdef471f6563b5b3379 /cloudinit/handlers/upstart_job.py
parenteae3b6ad499b88b725a52cf07245e4721af380cf (diff)
parent0891f6611d1c264220a6f71306802db1e70651fc (diff)
downloadvyos-cloud-init-82397d79f1c0618f25eab6e28e65b1e59a98603a.tar.gz
vyos-cloud-init-82397d79f1c0618f25eab6e28e65b1e59a98603a.zip
merge from trunk
Diffstat (limited to 'cloudinit/handlers/upstart_job.py')
-rw-r--r--cloudinit/handlers/upstart_job.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/handlers/upstart_job.py b/cloudinit/handlers/upstart_job.py
index 7a73d1b2..bac4cad2 100644
--- a/cloudinit/handlers/upstart_job.py
+++ b/cloudinit/handlers/upstart_job.py
@@ -31,6 +31,7 @@ from cloudinit import util
from cloudinit.settings import (PER_INSTANCE)
LOG = logging.getLogger(__name__)
+UPSTART_PREFIX = "#upstart-job"
class UpstartJobPartHandler(handlers.Handler):
@@ -40,7 +41,7 @@ class UpstartJobPartHandler(handlers.Handler):
def list_types(self):
return [
- handlers.type_from_starts_with("#upstart-job"),
+ handlers.type_from_starts_with(UPSTART_PREFIX),
]
def handle_part(self, _data, ctype, filename, # pylint: disable=W0221