fixed following error: [localhost] run: docker-machine ip default
[localhost] out: /usr/local/bin/virtualenvwrapper.sh: line 230: : command not found [localhost] out: virtualenvwrapper.sh: There was a problem running the initialization hooks. [localhost] out: [localhost] out: If Python could not import the module virtualenvwrapper.hook_loader, [localhost] out: check that virtualenvwrapper has been installed for [localhost] out: VIRTUALENVWRAPPER_PYTHON= and that PATH is [localhost] out: set properly. [localhost] out: Error getting IP address: ssh command error: [localhost] out: command : ip addr show [localhost] out: err : exit status 255 [localhost] out: output : [localhost] out:
This commit is contained in:
parent
15370c4a28
commit
259eb14238
1 changed files with 7 additions and 2 deletions
|
|
@ -22,6 +22,10 @@ def docker_ip():
|
||||||
docker_cmd = 'docker-machine ip %s' % \
|
docker_cmd = 'docker-machine ip %s' % \
|
||||||
configuration.docker.machine
|
configuration.docker.machine
|
||||||
|
|
||||||
|
docker_cmd = "docker inspect -f '{{"
|
||||||
|
docker_cmd += "range.NetworkSettings.Networks}}"
|
||||||
|
docker_cmd += "{{.IPAddress}}{{end}}' pedantic_tu"
|
||||||
|
|
||||||
return _execute(docker_cmd)
|
return _execute(docker_cmd)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
@ -278,6 +282,7 @@ def edit(param='help'):
|
||||||
print('database template path: %s' % database_template_path)
|
print('database template path: %s' % database_template_path)
|
||||||
|
|
||||||
project_branch = configuration.project.branch
|
project_branch = configuration.project.branch
|
||||||
|
print('project branch: %s' % project_branch)
|
||||||
|
|
||||||
locations = {
|
locations = {
|
||||||
'database': {
|
'database': {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue