Lines Matching refs:hostname_file
77 # The number of items per line when parsing the hostname_file csv file.
235 def _is_hostname_file_valid(hostname_file):
242 @param hostname_file Filename of the hostname file to check.
246 return os.path.exists(hostname_file) and os.path.getsize(hostname_file) > 0
264 # If both hostnames and hostname_file are specified, complain about that.
265 if arguments.hostnames and arguments.hostname_file:
270 if (arguments.hostname_file and
271 not _is_hostname_file_valid(arguments.hostname_file)):
275 if (not arguments.hostnames and not arguments.hostname_file and
449 Parse a line from the hostname_file and return a dict of the info.
458 raise Exception('hostname_file line has unexpected number of items '
487 def _parse_hostname_file(hostname_file):
489 Parse the hostname_file and return a list of dicts for each line.
491 @param hostname_file: CSV file that contains all the goodies.
498 with open(hostname_file) as f:
538 if arguments.hostname_file:
540 hostname_file_info_list = _parse_hostname_file(arguments.hostname_file)