agent: replace another occurence of file() (#36273)

This commit is contained in:
Frédéric Péters 2019-09-22 08:36:49 +02:00
parent 8eef430d2b
commit 0f7bffd1b2
1 changed files with 1 additions and 1 deletions

View File

@ -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