Correct name of variable is settings_file_path, instead of settings_file.

Signed-off-by: Cleber Rosa <[email protected]>
---
 installation_support/autotest-database-turnkey | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/installation_support/autotest-database-turnkey 
b/installation_support/autotest-database-turnkey
index 88dd753..a7a0a13 100755
--- a/installation_support/autotest-database-turnkey
+++ b/installation_support/autotest-database-turnkey
@@ -134,8 +134,8 @@ def set_global_config_value(section, key, value):
     section_re = re.compile(r'^\[%s\]$' % section)
     key_re = re.compile(r'^%s:\s+(.*)$' % key)
 
-    current_lines = open(settings_file).readlines()
-    output_file = open(settings_file, 'wb')
+    current_lines = open(settings_file_path).readlines()
+    output_file = open(settings_file_path, 'wb')
 
     for line in current_lines:
         if section_re.match(line):
-- 
1.7.11.7

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to