Fix os-distro property name to os_distro

For fedora-atomic image, we set a property named os_distro.
However, in error logs and documentation refer to it as os-distro

Closes-Bug: #1470934
Change-Id: Ifc5a5be8e0131743aba88a143098d05e5cbac951
This commit is contained in:
Amey Bhide 2015-07-02 13:59:41 -07:00
parent 680a5bab0a
commit 65c7a63adf
3 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ Create a new shell, and source the devstack openrc script::
glance image-create --name fedora-21-atomic-3 \
--is-public True \
--disk-format qcow2 \
--property os-distro='fedora-atomic'\
--property os_distro='fedora-atomic'\
--container-format bare < fedora-21-atomic-3.qcow2
test -f ~/.ssh/id_rsa.pub || ssh-keygen
nova keypair-add --pub-key ~/.ssh/id_rsa.pub testkey

View File

@ -464,7 +464,7 @@ class ImageNotAuthorized(MagnumException):
class OSDistroFieldNotFound(ResourceNotFound):
message = _("Image %(image_id)s doesn't contain os-distro field.")
message = _("Image %(image_id)s doesn't contain os_distro field.")
class KubernetesAPIFailed(MagnumException):

View File

@ -328,7 +328,7 @@ msgstr ""
#: magnum/common/exception.py:460
#, python-format
msgid "Image %(image_id)s doesn't contain os-distro field."
msgid "Image %(image_id)s doesn't contain os_distro field."
msgstr ""
#: magnum/common/k8s_manifest.py:40 magnum/common/k8s_manifest.py:53