Skip to content

Commit c0ada2d

Browse files
committed
Extend project delete command description
"openstack project delete" command doesn't try to figure out if other services are using specified project somehow before trying to delete it. This patch extends command description to ensure that this is clearly communicated to users. Related-bug: #2118900 Change-Id: I3ae0b2a8f04d4f791cab46ccd89f400549d24ecd Signed-off-by: Alexey Stupnikov <aleksey.stupnikov@gmail.com>
1 parent 3c3ea30 commit c0ada2d

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

openstackclient/identity/v2_0/project.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,14 @@ def take_action(self, parsed_args):
105105

106106

107107
class DeleteProject(command.Command):
108-
_description = _("Delete project(s)")
108+
_description = _(
109+
"Delete project(s). This command will remove specified "
110+
"existing project(s) if an active user is authorized to do "
111+
"this. If there are resources managed by other services "
112+
"(for example, Nova, Neutron, Cinder) associated with "
113+
"specified project(s), delete operation will proceed "
114+
"regardless."
115+
)
109116

110117
def get_parser(self, prog_name):
111118
parser = super().get_parser(prog_name)

openstackclient/identity/v3/project.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,14 @@ def take_action(self, parsed_args):
146146

147147

148148
class DeleteProject(command.Command):
149-
_description = _("Delete project(s)")
149+
_description = _(
150+
"Delete project(s). This command will remove specified "
151+
"existing project(s) if an active user is authorized to do "
152+
"this. If there are resources managed by other services "
153+
"(for example, Nova, Neutron, Cinder) associated with "
154+
"specified project(s), delete operation will proceed "
155+
"regardless."
156+
)
150157

151158
def get_parser(self, prog_name):
152159
parser = super().get_parser(prog_name)

0 commit comments

Comments
 (0)