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

index 90b2ca7..4d76cd3 100644 (file)
@@ -181,7 +181,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)