diff --git a/doc/source/command-objects/project.rst b/doc/source/command-objects/project.rst index b39edb4d6a..422e239c72 100644 --- a/doc/source/command-objects/project.rst +++ b/doc/source/command-objects/project.rst @@ -118,12 +118,6 @@ Set project properties Set project name -.. option:: --domain - - Set domain owning :ref:`\ ` (name or ID) - - .. versionadded:: 3 - .. option:: --description Set project description diff --git a/openstackclient/identity/v3/project.py b/openstackclient/identity/v3/project.py index 9a54e5cd08..1c93ad5d6c 100644 --- a/openstackclient/identity/v3/project.py +++ b/openstackclient/identity/v3/project.py @@ -231,11 +231,6 @@ class SetProject(command.Command): metavar='', help='Set project name', ) - parser.add_argument( - '--domain', - metavar='', - help='Set domain owning (name or ID)', - ) parser.add_argument( '--description', metavar='', @@ -267,7 +262,6 @@ class SetProject(command.Command): if (not parsed_args.name and not parsed_args.description - and not parsed_args.domain and not parsed_args.enable and not parsed_args.property and not parsed_args.disable): @@ -281,9 +275,6 @@ class SetProject(command.Command): kwargs = {} if parsed_args.name: kwargs['name'] = parsed_args.name - if parsed_args.domain: - kwargs['domain'] = common.find_domain(identity_client, - parsed_args.domain).id if parsed_args.description: kwargs['description'] = parsed_args.description if parsed_args.enable: