From 5b4eae9ace3591a984bfe48bcb63fb2711b5bf18 Mon Sep 17 00:00:00 2001 From: huangtianhua Date: Tue, 17 Dec 2013 12:02:20 +0800 Subject: [PATCH] Fix copy/paste errors in API docstrings Fix some inappropriate docstring, like: 1. "Gets detailed information for a stack" as the docstring for show() in events.py 2. "Lists summary information for all resources" as the docstring for index() in events.py 3. "Gets detailed information for a stack" as the docstring for show() in resources.py 4. "Gets detailed information for a stack " as the docstring for metadata() in resources.py Change-Id: I38fc6a18224d1537bf6981ba60bffc31768b7443 Closes-Bug: #1261615 --- heat/api/openstack/v1/events.py | 4 ++-- heat/api/openstack/v1/resources.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/heat/api/openstack/v1/events.py b/heat/api/openstack/v1/events.py index 8e00758183..260b414280 100644 --- a/heat/api/openstack/v1/events.py +++ b/heat/api/openstack/v1/events.py @@ -90,7 +90,7 @@ class EventController(object): @util.identified_stack def index(self, req, identity, resource_name=None): """ - Lists summary information for all resources + Lists summary information for all events """ if resource_name is None: @@ -108,7 +108,7 @@ class EventController(object): @util.identified_stack def show(self, req, identity, resource_name, event_id): """ - Gets detailed information for a stack + Gets detailed information for an event """ def event_match(ev): diff --git a/heat/api/openstack/v1/resources.py b/heat/api/openstack/v1/resources.py index 504324b6df..1d98cd76f9 100644 --- a/heat/api/openstack/v1/resources.py +++ b/heat/api/openstack/v1/resources.py @@ -79,7 +79,7 @@ class ResourceController(object): @util.identified_stack def show(self, req, identity, resource_name): """ - Gets detailed information for a stack + Gets detailed information for a resource """ res = self.engine.describe_stack_resource(req.context, @@ -91,7 +91,7 @@ class ResourceController(object): @util.identified_stack def metadata(self, req, identity, resource_name): """ - Gets detailed information for a stack + Gets metadata information for a resource """ res = self.engine.describe_stack_resource(req.context,