From 2ee1bfc9830c3dbc2b28f20649c552810803ebe8 Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Tue, 4 Nov 2008 21:01:48 +0000 Subject: [PATCH] take close() out of conditional --- source/steps/UpdateNodeConfiguration.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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": -- 2.47.0