mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
break if leading comments are all fetched
This commit is contained in:
parent
d7f65dc7a7
commit
38add0e4a2
1 changed files with 2 additions and 0 deletions
|
@ -2548,6 +2548,8 @@ def _parse_repo_file(filename):
|
|||
for line in rawfile:
|
||||
if line.strip().startswith('#'):
|
||||
headers += '{0}\n'.format(line.strip())
|
||||
else:
|
||||
break
|
||||
|
||||
return (headers, config)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue