Merge "Do not allow user to change domain of a project"
This commit is contained in:
commit
b317c2442b
@ -118,12 +118,6 @@ Set project properties
|
|||||||
|
|
||||||
Set project name
|
Set project name
|
||||||
|
|
||||||
.. option:: --domain <domain>
|
|
||||||
|
|
||||||
Set domain owning :ref:`\<project\> <project_set-project>` (name or ID)
|
|
||||||
|
|
||||||
.. versionadded:: 3
|
|
||||||
|
|
||||||
.. option:: --description <description>
|
.. option:: --description <description>
|
||||||
|
|
||||||
Set project description
|
Set project description
|
||||||
|
@ -231,11 +231,6 @@ class SetProject(command.Command):
|
|||||||
metavar='<name>',
|
metavar='<name>',
|
||||||
help='Set project name',
|
help='Set project name',
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
|
||||||
'--domain',
|
|
||||||
metavar='<domain>',
|
|
||||||
help='Set domain owning <project> (name or ID)',
|
|
||||||
)
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--description',
|
'--description',
|
||||||
metavar='<description>',
|
metavar='<description>',
|
||||||
@ -267,7 +262,6 @@ class SetProject(command.Command):
|
|||||||
|
|
||||||
if (not parsed_args.name
|
if (not parsed_args.name
|
||||||
and not parsed_args.description
|
and not parsed_args.description
|
||||||
and not parsed_args.domain
|
|
||||||
and not parsed_args.enable
|
and not parsed_args.enable
|
||||||
and not parsed_args.property
|
and not parsed_args.property
|
||||||
and not parsed_args.disable):
|
and not parsed_args.disable):
|
||||||
@ -281,9 +275,6 @@ class SetProject(command.Command):
|
|||||||
kwargs = {}
|
kwargs = {}
|
||||||
if parsed_args.name:
|
if parsed_args.name:
|
||||||
kwargs['name'] = 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:
|
if parsed_args.description:
|
||||||
kwargs['description'] = parsed_args.description
|
kwargs['description'] = parsed_args.description
|
||||||
if parsed_args.enable:
|
if parsed_args.enable:
|
||||||
|
Loading…
Reference in New Issue
Block a user