Skip to content

Commit

Permalink
read enums from schema
Browse files Browse the repository at this point in the history
  • Loading branch information
slominskir committed Jan 26, 2021
1 parent edbc5f5 commit bb48228
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/alarms/set-registered.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

value_schema = avro.loads(value_schema_str)

categories = value_schema.fields[2].type.symbols
locations = value_schema.fields[1].type.symbols

def delivery_report(err, msg):
""" Called once for each message produced to indicate delivery result.
Triggered by poll() or flush(). """
Expand Down

0 comments on commit bb48228

Please sign in to comment.