git://git.onelab.eu
/
bootmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e103d8
)
take close() out of conditional
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Tue, 4 Nov 2008 21:01:48 +0000
(21:01 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Tue, 4 Nov 2008 21:01:48 +0000
(21:01 +0000)
source/steps/UpdateNodeConfiguration.py
patch
|
blob
|
history
diff --git
a/source/steps/UpdateNodeConfiguration.py
b/source/steps/UpdateNodeConfiguration.py
index
d24dd18
..
bca5929
100644
(file)
--- a/
source/steps/UpdateNodeConfiguration.py
+++ b/
source/steps/UpdateNodeConfiguration.py
@@
-185,9
+185,8
@@
def update_vserver_network_files( vserver_dir, vars, log ):
hosts_file.write( "127.0.0.1 localhost\n" )
if method == "static":
hosts_file.write( "%s %s.%s\n" % (ip, hostname, domainname) )
- hosts_file.close()
- hosts_file= None
-
+ hosts_file.close()
+ hosts_file= None
file_path= "%s/etc/resolv.conf" % vserver_dir
if method == "dhcp":