diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-06-01 16:51:26 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-06-01 16:51:26 -0700 |
| commit | ef1f5b3aadde2fedb4b2d197af0f1c0f07375714 (patch) | |
| tree | e59bfff4792a2cf8e303c5ff5ca2d95d1ffd5b7a | |
| parent | 81857037710d2bab23d151184912c194edf9018d (diff) | |
| download | nova-ef1f5b3aadde2fedb4b2d197af0f1c0f07375714.tar.gz nova-ef1f5b3aadde2fedb4b2d197af0f1c0f07375714.tar.xz nova-ef1f5b3aadde2fedb4b2d197af0f1c0f07375714.zip | |
fix novarc to work on mac and zsh
| -rw-r--r-- | nova/auth/novarc.template | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/auth/novarc.template b/nova/auth/novarc.template index 8170fcafe..4a1f41802 100644 --- a/nova/auth/novarc.template +++ b/nova/auth/novarc.template @@ -1,4 +1,5 @@ -NOVA_KEY_DIR=$(dirname $(readlink -f ${BASH_SOURCE})) +NOVARC=$(python -c 'import os,sys; print os.path.abspath(os.path.realpath(sys.argv[1]))' ${BASH_SOURCE-0}) +NOVA_KEY_DIR=$(dirname ${NOVARC}) export EC2_ACCESS_KEY="%(access)s:%(project)s" export EC2_SECRET_KEY="%(secret)s" export EC2_URL="%(ec2)s" |
