Comment 3 for bug 1530319

Revision history for this message
Jay Chang (changsijay) wrote : Re: kolla ansible can not work in virtualenv

I add another `elif` as below

```
    elif [[ ${dir_name} == "${VIRTUAL_ENV}/bin" ]]; then
        BASEDIR="${VIRTUAL_ENV}/share/kolla"
```

It got correct BASEDIR, but failed on cannot find `docker` module as below :(

```
TASK [common : Creating log volume] ********************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named docker
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_eKYY4o/ansible_module_kolla_docker.py\", line 195, in <module>\n import docker\nImportError: No module named docker\n", "module_stdout": "", "msg": "MODULE FAILURE"}
```