FUP: Fixed the invalid index in References

Change-Id: I637665f0b05a863f31255274f6b96f3a58d5afa4
This commit is contained in:
zhangbailin 2020-02-05 19:32:44 +08:00
parent 20907c8141
commit 001ddac9ec
1 changed files with 2 additions and 3 deletions

View File

@ -73,7 +73,8 @@ is 'rule:admin_api').
The event "details" are the same as the ``fault.message`` that the user would
see when the server is in **ERROR** status. For NovaExceptions that would be
the actual exception message but for non-NovaExceptions it's just the
`exception class name`_.
`exception class name`_ (In the defined ``exception_to_dict`` function to do
``message = fault.__class__.__name__``).
Alternatives
------------
@ -229,8 +230,6 @@ References
https://docs.openstack.org/api-guide/compute/faults.html#instance-faults
.. _`exception class name`:
In the defined ``exception_to_dict`` function to do
``message = fault.__class__.__name__`` (Just avoid invalid link).
https://github.com/openstack/nova/blob/56fc3f28e48bd9c6faf72d2a8bfdf520cc3e60d0/nova/compute/utils.py#100
.. _`bug 1851587`: https://bugs.launchpad.net/nova/+bug/1851587