I am against doing this this way on principle, but I know it was a rush job.  just have to put in that I do not like this approach (shell script calling nova command) vs  some ruby lib that can talk to the api.