Fix indentation in docstrings

When building documentation, wrong indentation in docstring warnings are
leading to doc build errors (warning-is-error is enabled).

This patch is fixing indentation for indentation in docstrings so that
sphinx can build the documentation without warnings.

Change-Id: I0fccf1b38747603027850473211ddb17224e45e3
This commit is contained in:
Alfredo Moralejo 2019-02-12 10:49:20 +01:00 committed by Lin Yang
parent c6433c2e61
commit 731994050a
2 changed files with 12 additions and 12 deletions

View File

@ -62,11 +62,11 @@ class EventService(base.ResourceBase):
event_types_for_subscription = base.Field("EventTypesForSubscription") event_types_for_subscription = base.Field("EventTypesForSubscription")
"""These are the types of Events that can be subscribed to. Available """These are the types of Events that can be subscribed to. Available
event types: event types:
- StatusChange - The status of this resource has changed - StatusChange - The status of this resource has changed
- ResourceUpdated - The value of this resource has been updated - ResourceUpdated - The value of this resource has been updated
- ResourceAdded - A resource has been added - ResourceAdded - A resource has been added
- ResourceRemoved - A resource has been removed - ResourceRemoved - A resource has been removed
- Alert - A condition exists which requires attention - Alert - A condition exists which requires attention
""" """
def __init__(self, connector, identity, redfish_version=None): def __init__(self, connector, identity, redfish_version=None):

View File

@ -48,11 +48,11 @@ class EventSubscription(base.ResourceBase):
event_types = base.Field("EventTypes") event_types = base.Field("EventTypes")
"""These are the types of Events that can be subscribed to. Available """These are the types of Events that can be subscribed to. Available
event types: event types:
- StatusChange - The status of this resource has changed - StatusChange - The status of this resource has changed
- ResourceUpdated - The value of this resource has been updated. - ResourceUpdated - The value of this resource has been updated.
- ResourceAdded - A resource has been added - ResourceAdded - A resource has been added
- ResourceRemoved - A resource has been removed - ResourceRemoved - A resource has been removed
- Alert - A condition exists which requires attention - Alert - A condition exists which requires attention
""" """
context = base.Field("Context") context = base.Field("Context")
@ -62,8 +62,8 @@ class EventSubscription(base.ResourceBase):
protocol = base.Field("Protocol") protocol = base.Field("Protocol")
"""The protocol type of the event connection. Available protocols: """The protocol type of the event connection. Available protocols:
- "Redfish" - event type shall adhere to that defined in the - "Redfish" - event type shall adhere to that defined in the \
Redfish specification. Redfish specification.
""" """
http_headers = base.Field("HttpHeaders") http_headers = base.Field("HttpHeaders")