Check extra data to make sure it's not just an empty string

This commit is contained in:
Matthew Jones 2014-09-29 15:17:08 -04:00
parent cc6d673e4f
commit c35f892e9e

View File

@ -445,6 +445,8 @@ class Job(UnifiedJob, JobOptions):
return dependencies
def handle_extra_data(self, extra_data):
if extra_data == "":
return
evars = json.loads(self.extra_vars)
evars.update(extra_data)
self.update_fields(extra_vars=json.dumps(evars))