got rid of some dead code
This commit is contained in:
parent
dc564de0c1
commit
b4954662d5
1 changed files with 3 additions and 15 deletions
|
|
@ -35,7 +35,6 @@ def docker_ip():
|
|||
|
||||
|
||||
def docker_run(cmd):
|
||||
from fabric.context_managers import prefix
|
||||
configuration = env.config
|
||||
|
||||
if env.debug:
|
||||
|
|
@ -53,17 +52,6 @@ def docker_run(cmd):
|
|||
if configuration.docker.database.host != 'local':
|
||||
_execute = executize("sudo")
|
||||
|
||||
if configuration.docker.machine:
|
||||
docker_eval = "eval $(docker-machine env %s)" % \
|
||||
configuration.docker.machine
|
||||
|
||||
with prefix(docker_eval):
|
||||
if env.debug:
|
||||
logger.debug("_execute(cmd): %s" % cmd)
|
||||
else:
|
||||
_execute(cmd)
|
||||
|
||||
else:
|
||||
if env.debug:
|
||||
logger.debug("_execute(cmd): %s" % cmd)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue