Correcting syntax error with elif.
authorBen Limmer <redacted>
Sat, 13 Jul 2013 22:24:06 +0000 (16:24 -0600)
committerBen Limmer <redacted>
Sat, 13 Jul 2013 22:24:06 +0000 (16:24 -0600)
updateHostsFile.py

index ead65d9698312732058d7f7d57303416bc17e9de..805f9ad74c816eb8b91cf1f6dd6b038713f479c3 100644 (file)
@@ -208,7 +208,7 @@ def moveHostsFileIntoPlace(finalFile):
                else:
                        if(subprocess.call(["/usr/bin/sudo", "/etc/rc.d/init.d/nscd", "restart"])):
                                printFailure("Flushing the DNS Cache failed.")
-       else if (os.name == 'nt'):
+       elif (os.name == 'nt'):
                print 'Automatically moving the hosts file in place is not yet supported.'
                print 'Please move the generated file to %SystemRoot%\system32\drivers\etc\hosts'
 
git clone https://git.99rst.org/PROJECT