Closed pbilling closed 1 year ago
Current workaround is to define job_request (and all attributes) in YAML, even for null values, by adding the line job_request = null
which will be loaded as job_request = None
in Python.
Related issue regarding null/None values: https://stackoverflow.com/questions/30134110/how-can-i-output-blank-value-in-python-yaml-file
To support the new method of mapping database queries to job requests, I've added a new
job_request
attribute to theDatabaseQuery
class. In the__init__()
function for the class, the default value isjob_request=None
, however when queries are populated from a yaml file, without a job_request value specified, I get this error where the instance doesn't seem to have the attribute at all. I've encountered similar issues before and I'm wondering if, when class instances are loaded from YAML, the defined__init__()
function isn't used.