X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/812993586e7dc31ead38075e07616b7ec47fd347..89f10cd956b1282d8d650fd82f945f8169664df9:/doc/_includes/_0_filter_py.liquid diff --git a/doc/_includes/_0_filter_py.liquid b/doc/_includes/_0_filter_py.liquid index ef89e13a10..ff055dbb59 100644 --- a/doc/_includes/_0_filter_py.liquid +++ b/doc/_includes/_0_filter_py.liquid @@ -1,4 +1,9 @@ #!/usr/bin/env python +{% comment %} +Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: CC-BY-SA-3.0 +{% endcomment %} # Import the Arvados sdk module import arvados @@ -21,10 +26,10 @@ with out.open('0-filter.txt') as out_file: # Output every line in the file that starts with '0' out_file.writelines(line for line in input_file if line.startswith('0')) -# Commit the output to keep. This returns a Keep id. -output_id = out.finish() +# Commit the output to Keep. +output_locator = out.finish() -# Set the output for this task to the Keep id -this_task.set_output(output_id) +# Use the resulting locator as the output for this task. +this_task.set_output(output_locator) # Done!