Merge "Use is_public to set access of volume type"
This commit is contained in:
commit
12cc6347e5
@ -73,7 +73,7 @@ class TestTypeCreate(TestType):
|
||||
self.types_mock.create.assert_called_with(
|
||||
volume_fakes.type_name,
|
||||
description=volume_fakes.type_description,
|
||||
public=True,
|
||||
is_public=True,
|
||||
)
|
||||
|
||||
collist = (
|
||||
@ -93,7 +93,7 @@ class TestTypeCreate(TestType):
|
||||
arglist = [
|
||||
volume_fakes.type_name,
|
||||
"--description", volume_fakes.type_description,
|
||||
"--private"
|
||||
"--private",
|
||||
]
|
||||
verifylist = [
|
||||
("name", volume_fakes.type_name),
|
||||
@ -107,7 +107,7 @@ class TestTypeCreate(TestType):
|
||||
self.types_mock.create.assert_called_with(
|
||||
volume_fakes.type_name,
|
||||
description=volume_fakes.type_description,
|
||||
private=True,
|
||||
is_public=False,
|
||||
)
|
||||
|
||||
collist = (
|
||||
|
@ -73,9 +73,9 @@ class CreateVolumeType(show.ShowOne):
|
||||
|
||||
kwargs = {}
|
||||
if parsed_args.public:
|
||||
kwargs['public'] = True
|
||||
kwargs['is_public'] = True
|
||||
if parsed_args.private:
|
||||
kwargs['private'] = True
|
||||
kwargs['is_public'] = False
|
||||
|
||||
volume_type = volume_client.volume_types.create(
|
||||
parsed_args.name,
|
||||
|
Loading…
Reference in New Issue
Block a user