After posting the question I just found what I wanted. There is the openstack command that I didn't know that existed (yum install python-openstackclient in fedora) that covers what I need:
status="\$(openstack server show -c status --format value my-instance-name)"