Wenn der Hostname eines Environment zwar lokal ist, aber kein Passwort

gesetzt ist, handelt es sich wahrscheinlich um einen Tunnel zu einem
Produktivsystem. Diese werden nun auch als nicht-lokal behandelt und
es wird nach dem Passwort gefragt.
develop
Christian Hattemer 2016-04-19 14:29:04 +02:00
parent 4c6521fb48
commit 8f3156e2b2
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ def main():
'::1',
]
netloc = urlparse.urlparse(env.host).netloc
if netloc not in local_netlocs:
if (netloc not in local_netlocs) or (env.pwd is None):
print '\nAchtung, diese Umgebung ist nicht lokal!\n'
print cmd,