14946: Reverts Gemfile.lock changes. Updates documentation.
[arvados.git] / doc / _includes / _tutorial_hash_script_py.liquid
index 3fb48f87e039c4ac5c627be13f03980140e2ab41..9eacb763dc3b2090906f97c33b6771d1bbdae5a4 100644 (file)
@@ -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 hashlib      # Import the hashlib module to compute MD5.
 import os           # Import the os module for basic path manipulation
@@ -36,10 +41,10 @@ with out.open('md5sum.txt') as out_file:
     out_file.write("{} {}/{}\n".format(digestor.hexdigest(), input_id,
                                        os.path.normpath(input_path)))
 
-# 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!