From 53b621053113c72574ecfdbb044f6385a009c511 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Sat, 21 Apr 2018 18:09:42 +0200 Subject: [PATCH] Remove unneeded file opening The statement has been moved to the Docker file of blender-cloud, where we actually append a generated STATIC_FILE_HASH. --- pillar/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pillar/__init__.py b/pillar/__init__.py index c6259ba7..3c28e9eb 100644 --- a/pillar/__init__.py +++ b/pillar/__init__.py @@ -184,7 +184,6 @@ class PillarServer(BlinkerCompatibleEve): if not self.config.get('STATIC_FILE_HASH'): self.log.warning('STATIC_FILE_HASH is empty, generating random one') - f = open('/data/git/blender-cloud/config_local.py', 'a') h = re.sub(r'[_.~-]', '', secrets.token_urlsafe())[:8] self.config['STATIC_FILE_HASH'] = h