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):
64
64
bucket_id = attributes ['bucketId' ]
65
65
object_id = attributes ['objectId' ]
66
66
generation = attributes ['objectGeneration' ]
67
- overwrote_generation = attributes ['overwroteGeneration' ]
68
- overwritten_by_generation = attributes ['overwrittenByGeneration' ]
69
67
description = (
70
68
'\t Event type: {event_type}\n '
71
69
'\t Bucket ID: {bucket_id}\n '
@@ -76,11 +74,12 @@ def summarize(message):
76
74
object_id = object_id ,
77
75
generation = generation )
78
76
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 :
82
81
description += '\t Overwritten by generation: %s\n ' % (
83
- overwritten_by_generation )
82
+ attributes [ 'ovewrittenByGeneration' ] )
84
83
85
84
payload_format = attributes ['payloadFormat' ]
86
85
if payload_format == 'JSON_API_V1' :
You can’t perform that action at this time.
0 commit comments