workaround to use after the instance started: - apply patch:
=== modified file 'cloudinit/__init__.py' --- cloudinit/__init__.py 2011-02-07 19:36:33 +0000 +++ cloudinit/__init__.py 2011-03-21 20:18:27 +0000 @@ -363,7 +363,7 @@ self.handlercount=self.handlercount+1
# write content to instance's handlerdir - handlerdir = self.get_ipath("handler") + handlerdir = self.get_ipath("handlers") modname = 'part-handler-%03d' % self.handlercount modfname = modname + ".py" util.write_file("%s/%s" % (handlerdir,modfname), payload, 0600)
- rm -Rf /var/lib/cloud/instance* - reboot
workaround to use after the instance started:
- apply patch:
=== modified file 'cloudinit/ __init_ _.py' __init_ _.py 2011-02-07 19:36:33 +0000 __init_ _.py 2011-03-21 20:18:27 +0000
self. handlercount= self.handlercou nt+1
--- cloudinit/
+++ cloudinit/
@@ -363,7 +363,7 @@
# write content to instance's handlerdir ipath(" handler" ) ipath(" handlers" )
util. write_file( "%s/%s" % (handlerdir, modfname) , payload, 0600)
- handlerdir = self.get_
+ handlerdir = self.get_
modname = 'part-handler-%03d' % self.handlercount
modfname = modname + ".py"
- rm -Rf /var/lib/ cloud/instance*
- reboot