From 731994050ad44f816f1de8266aca12eb73fcc1af Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo <amoralej@redhat.com> Date: Tue, 12 Feb 2019 10:49:20 +0100 Subject: [PATCH] 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 --- .../resources/v2_1/event_service/event_service.py | 10 +++++----- .../v2_1/event_service/event_subscription.py | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/rsd_lib/resources/v2_1/event_service/event_service.py b/rsd_lib/resources/v2_1/event_service/event_service.py index f7bcfcf..9aedc8e 100644 --- a/rsd_lib/resources/v2_1/event_service/event_service.py +++ b/rsd_lib/resources/v2_1/event_service/event_service.py @@ -62,11 +62,11 @@ class EventService(base.ResourceBase): event_types_for_subscription = base.Field("EventTypesForSubscription") """These are the types of Events that can be subscribed to. Available event types: - - StatusChange - The status of this resource has changed - - ResourceUpdated - The value of this resource has been updated - - ResourceAdded - A resource has been added - - ResourceRemoved - A resource has been removed - - Alert - A condition exists which requires attention + - StatusChange - The status of this resource has changed + - ResourceUpdated - The value of this resource has been updated + - ResourceAdded - A resource has been added + - ResourceRemoved - A resource has been removed + - Alert - A condition exists which requires attention """ def __init__(self, connector, identity, redfish_version=None): diff --git a/rsd_lib/resources/v2_1/event_service/event_subscription.py b/rsd_lib/resources/v2_1/event_service/event_subscription.py index 14dde3f..62c6e37 100644 --- a/rsd_lib/resources/v2_1/event_service/event_subscription.py +++ b/rsd_lib/resources/v2_1/event_service/event_subscription.py @@ -48,11 +48,11 @@ class EventSubscription(base.ResourceBase): event_types = base.Field("EventTypes") """These are the types of Events that can be subscribed to. Available event types: - - StatusChange - The status of this resource has changed - - ResourceUpdated - The value of this resource has been updated. - - ResourceAdded - A resource has been added - - ResourceRemoved - A resource has been removed - - Alert - A condition exists which requires attention + - StatusChange - The status of this resource has changed + - ResourceUpdated - The value of this resource has been updated. + - ResourceAdded - A resource has been added + - ResourceRemoved - A resource has been removed + - Alert - A condition exists which requires attention """ context = base.Field("Context") @@ -62,8 +62,8 @@ class EventSubscription(base.ResourceBase): protocol = base.Field("Protocol") """The protocol type of the event connection. Available protocols: - - "Redfish" - event type shall adhere to that defined in the - Redfish specification. + - "Redfish" - event type shall adhere to that defined in the \ + Redfish specification. """ http_headers = base.Field("HttpHeaders")