Remove file exists check from botmeta sanity test.
Many of the paths in botmeta will no longer exist after migration, making this check pointless.
This commit is contained in:
parent
4fb7e62003
commit
b26ceb57ce
1 changed files with 0 additions and 11 deletions
|
@ -79,17 +79,6 @@ def main():
|
||||||
continue
|
continue
|
||||||
path_macros.append(macro)
|
path_macros.append(macro)
|
||||||
|
|
||||||
# Ensure all `files` correspond to a file
|
|
||||||
for file, file_meta in botmeta['files'].items():
|
|
||||||
migrated = isinstance(file_meta, dict) and file_meta.get('migrated_to') is not None
|
|
||||||
for macro in path_macros:
|
|
||||||
file = file.replace('$' + macro, botmeta.get('macros', {}).get(macro, ''))
|
|
||||||
if not os.path.exists(file) and not migrated:
|
|
||||||
# Not a file or directory, though maybe the prefix to one?
|
|
||||||
# https://github.com/ansible/ansibullbot/pull/1023
|
|
||||||
if not glob.glob('%s*' % file):
|
|
||||||
print("%s:%d:%d: Can't find '%s.*' in this branch" % (path, 0, 0, file))
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue