From 0f7bffd1b2417fbead242a813fcb39f5618a58cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 22 Sep 2019 08:36:49 +0200 Subject: [PATCH] agent: replace another occurence of file() (#36273) --- hobo/agent/common/management/commands/hobo_deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hobo/agent/common/management/commands/hobo_deploy.py b/hobo/agent/common/management/commands/hobo_deploy.py index 1ab1e26..b9dca51 100644 --- a/hobo/agent/common/management/commands/hobo_deploy.py +++ b/hobo/agent/common/management/commands/hobo_deploy.py @@ -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