Use the right variable.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Mon, 7 Jul 2008 16:13:12 +0000 (16:13 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Mon, 7 Jul 2008 16:13:12 +0000 (16:13 +0000)
sliver_vs.py

index 9e180d1..46b3a12 100644 (file)
@@ -170,7 +170,7 @@ class Sliver_VS(accounts.Account, vserver.VServer):
                     def install_initscript():
                         flags = os.O_WRONLY | os.O_CREAT | os.O_TRUNC
                         fd = os.open('/etc/rc.vinit', flags, 0755)
-                        os.write(fd, new_initscript)
+                        os.write(fd, self.initscript)
                         os.close(fd)
                     try:
                         self.chroot_call(install_initscript)