got rid of some dead code

This commit is contained in:
ronnyabraham 2022-09-12 14:00:05 +03:00
parent dc564de0c1
commit b4954662d5

View file

@ -35,7 +35,6 @@ def docker_ip():
def docker_run(cmd): def docker_run(cmd):
from fabric.context_managers import prefix
configuration = env.config configuration = env.config
if env.debug: if env.debug:
@ -53,21 +52,10 @@ def docker_run(cmd):
if configuration.docker.database.host != 'local': if configuration.docker.database.host != 'local':
_execute = executize("sudo") _execute = executize("sudo")
if configuration.docker.machine: if env.debug:
docker_eval = "eval $(docker-machine env %s)" % \ logger.debug("_execute(cmd): %s" % cmd)
configuration.docker.machine
with prefix(docker_eval):
if env.debug:
logger.debug("_execute(cmd): %s" % cmd)
else:
_execute(cmd)
else: else:
if env.debug: _execute(cmd)
logger.debug("_execute(cmd): %s" % cmd)
else:
_execute(cmd)
@task @task