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.
This commit is contained in:
Francesco Siddi 2018-04-21 18:09:42 +02:00
parent aeaa03ed80
commit 53b6210531

View File

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