Created
December 12, 2019 21:10
-
-
Save kmcminn/589bfd02cdaba7661a00ab73c3d1f68d to your computer and use it in GitHub Desktop.
diff catchup.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gcs_sa/cli/catchup.py b/gcs_sa/cli/catchup.py | |
index 3980425..da87b46 100644 | |
--- a/gcs_sa/cli/catchup.py | |
+++ b/gcs_sa/cli/catchup.py | |
@@ -117,6 +117,8 @@ def page_outputter(config: ConfigParser, bucket: Bucket, page: Page, | |
blob_count += 1 | |
# pylint: disable=protected-access | |
metadata = blob._properties | |
+ if "metadata" in metadata: | |
+ del metadata["metadata"] | |
catchup_output.put(metadata) | |
catchup_output.flush() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment