summaryrefslogtreecommitdiff
path: root/cloudinit/CloudConfig/cc_runcmd.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-01-19 19:46:15 +0000
committerScott Moser <smoser@ubuntu.com>2011-01-19 19:46:15 +0000
commit7434e3306d2526173c92ab57db30a0812cc47717 (patch)
tree54f3ad88ecdada0d3f694158b2da135388acf04e /cloudinit/CloudConfig/cc_runcmd.py
parent01512fdad97b581cd8ac3da8758e704b060f3d03 (diff)
downloadvyos-cloud-init-7434e3306d2526173c92ab57db30a0812cc47717.tar.gz
vyos-cloud-init-7434e3306d2526173c92ab57db30a0812cc47717.zip
convert 'cachedir' to 'seeddir', move cloud_config, scripts to instance
- cloud_config and scripts now live in instance directory - cachedir is now more correctly named 'seeddir'
Diffstat (limited to 'cloudinit/CloudConfig/cc_runcmd.py')
-rw-r--r--cloudinit/CloudConfig/cc_runcmd.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/CloudConfig/cc_runcmd.py b/cloudinit/CloudConfig/cc_runcmd.py
index 969f6394..afa7a441 100644
--- a/cloudinit/CloudConfig/cc_runcmd.py
+++ b/cloudinit/CloudConfig/cc_runcmd.py
@@ -21,8 +21,7 @@ import cloudinit.util as util
def handle(name,cfg,cloud,log,args):
if not cfg.has_key("runcmd"):
return
- outfile="%s/%s/runcmd" % \
- (cloudinit.user_scripts_dir, cloud.get_instance_id())
+ outfile="%s/runcmd" % cloud.get_ipath('scripts')
content="#!/bin/sh\n"
escaped="%s%s%s%s" % ( "'", '\\', "'", "'" )