File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,6 @@ def summarize(message):
6464 bucket_id = attributes ['bucketId' ]
6565 object_id = attributes ['objectId' ]
6666 generation = attributes ['objectGeneration' ]
67- overwrote_generation = attributes ['overwroteGeneration' ]
68- overwritten_by_generation = attributes ['overwrittenByGeneration' ]
6967 description = (
7068 '\t Event type: {event_type}\n '
7169 '\t Bucket ID: {bucket_id}\n '
@@ -76,11 +74,12 @@ def summarize(message):
7674 object_id = object_id ,
7775 generation = generation )
7876
79- if overwrote_generation :
80- description += '\t Overwrote generation: %s\n ' % overwrote_generation
81- if overwritten_by_generation :
77+ if 'overwroteGeneration' in attributes :
78+ description += '\t Overwrote generation: %s\n ' % (
79+ attributes ['overwroteGeneration' ])
80+ if 'overwrittenByGeneration' in attributes :
8281 description += '\t Overwritten by generation: %s\n ' % (
83- overwritten_by_generation )
82+ attributes [ 'ovewrittenByGeneration' ] )
8483
8584 payload_format = attributes ['payloadFormat' ]
8685 if payload_format == 'JSON_API_V1' :
You can’t perform that action at this time.
0 commit comments