Fix: reset hostname for each request
buildbot/travis_bionic Build done. Details

pull/5/head
Peter Šurda 2 years ago
parent e5b9d45a59
commit 0ee0ac4936
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

@ -60,7 +60,7 @@ class CloudInitApp:
try:
self.hostinfo = socket.gethostbyaddr(self.remoteip)
except socket.herror:
pass
self.hostinfo = ('localhost', )
def _redirect_if_needed(self):
filepath = os.path.join(PATH, "data", self.hostinfo[0],

Loading…
Cancel
Save