agent: replace another occurence of file() (#36273)
This commit is contained in:
parent
8eef430d2b
commit
0f7bffd1b2
|
@ -85,7 +85,7 @@ class Command(BaseCommand):
|
|||
timestamp = hobo_environment.get('timestamp')
|
||||
tenant_hobo_json = os.path.join(tenant.get_directory(), 'hobo.json')
|
||||
if os.path.exists(tenant_hobo_json):
|
||||
if not ignore_timestamp and json.load(file(tenant_hobo_json)).get('timestamp') == timestamp:
|
||||
if not ignore_timestamp and json.load(open(tenant_hobo_json)).get('timestamp') == timestamp:
|
||||
return
|
||||
|
||||
# add an attribute to current tenant for easier retrieval
|
||||
|
|
Loading…
Reference in New Issue