mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-05 16:01:50 -05:00
Switch to using extra_vars for survey variables, fix up some unit tests
related to that and some issues with system jobs
This commit is contained in:
@@ -78,7 +78,10 @@ class VarsDictProperty(object):
|
||||
def __get__(self, obj, type=None):
|
||||
if obj is None:
|
||||
return self
|
||||
v = getattr(obj, self.field).encode('utf-8')
|
||||
v = getattr(obj, self.field)
|
||||
if hasattr(v, 'items'):
|
||||
return v
|
||||
v = v.encode('utf-8')
|
||||
d = None
|
||||
try:
|
||||
d = json.loads(v.strip() or '{}')
|
||||
|
||||
Reference in New Issue
Block a user