From: Marc Fiuczynski Date: Tue, 4 Nov 2008 21:01:48 +0000 (+0000) Subject: take close() out of conditional X-Git-Tag: BootManager-4.3-2~16 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=2ee1bfc9830c3dbc2b28f20649c552810803ebe8;p=bootmanager.git take close() out of conditional --- diff --git a/source/steps/UpdateNodeConfiguration.py b/source/steps/UpdateNodeConfiguration.py index d24dd18..bca5929 100644 --- 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":