gpmovemirrors: fix typo lineno instead of line
gpmovemirrors: If we cannot parse the input file,
we should throw a clear exception.
This change fixes that.
Need to print lineno instead of line
@@ -256,9 +256,9 @@ class Configuration:
self.oldMirrorList.append(oldMirror)
self.newMirrorList.append(newMirror)
except ValueError:
- raise ValueError('Missing or invalid value on line %d of file: %s.' % (line, inputFile))
+ raise ValueError('Missing or invalid value on line %d of file: %s.' % (lineno, inputFile))
except Exception as e:
- raise Exception('Invalid input file on line %d of file %s: %s' % (line, inputFile, str(e)))
+ raise Exception('Invalid input file on line %d of file %s: %s' % (lineno, inputFile, str(e)))
def write_output_file(self, filename, oldToNew=True):
""" Write out the configuration in a format appropriate for use with the -i option. """
