PaloAltoNetworks / SafeNetworking

Read only mirror. To contribute or submit issues, please go to the website link --->
https://gitlab.com/panw-gse/as/SafeNetworking/
Apache License 2.0
12 stars 10 forks source link

'None' Type is not subscriptable in write of domain document #8

Closed punisherVX closed 6 years ago

punisherVX commented 6 years ago

Expected behavior and actual behavior.

Expected that domain document is written properly to ES DB. It looks like all processing is done correctly on new domain document creation, but when trying to write the doc to the DB something is returned as None. Need to diagnose which object is not being populated correctly and fix. This is happening on the test/demo server for 3.0

Steps to reproduce the problem.

Run 3.0 code in AWS. This may affect others, but as of now we have not heard from anyone else about it. Trying to fix before others deploy it.

Specifications like the version of the project, operating system, or hardware.

SFN 3.0

punisherVX commented 6 years ago

This was caused by the default dictionary settings not being populated with the tag group. Added tag group default setting to dictionary and problem went away.