python-manilaclient 4.8.0__py3-none-any.whl → 4.8.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- manilaclient/osc/v2/share_network_subnets.py +10 -0
- manilaclient/osc/v2/share_networks.py +10 -7
- manilaclient/tests/functional/osc/test_share_network_subnets.py +2 -2
- manilaclient/tests/unit/osc/v2/test_share_networks.py +1 -2
- {python_manilaclient-4.8.0.dist-info → python_manilaclient-4.8.1.dist-info}/AUTHORS +2 -0
- {python_manilaclient-4.8.0.dist-info → python_manilaclient-4.8.1.dist-info}/METADATA +15 -17
- {python_manilaclient-4.8.0.dist-info → python_manilaclient-4.8.1.dist-info}/RECORD +12 -12
- {python_manilaclient-4.8.0.dist-info → python_manilaclient-4.8.1.dist-info}/WHEEL +1 -1
- {python_manilaclient-4.8.0.dist-info → python_manilaclient-4.8.1.dist-info}/entry_points.txt +0 -1
- python_manilaclient-4.8.1.dist-info/pbr.json +1 -0
- python_manilaclient-4.8.0.dist-info/pbr.json +0 -1
- {python_manilaclient-4.8.0.dist-info → python_manilaclient-4.8.1.dist-info}/LICENSE +0 -0
- {python_manilaclient-4.8.0.dist-info → python_manilaclient-4.8.1.dist-info}/top_level.txt +0 -0
|
@@ -21,6 +21,7 @@ from osc_lib import utils as oscutils
|
|
|
21
21
|
|
|
22
22
|
from manilaclient import api_versions
|
|
23
23
|
from manilaclient.common._i18n import _
|
|
24
|
+
from manilaclient.common import cliutils
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
LOG = logging.getLogger(__name__)
|
|
@@ -135,6 +136,15 @@ class CreateShareNetworkSubnet(command.ShowOne):
|
|
|
135
136
|
share_network_id=share_network_id)
|
|
136
137
|
)
|
|
137
138
|
subnet_data = subnet_create_check[1]
|
|
139
|
+
if subnet_data:
|
|
140
|
+
if parsed_args.formatter == 'table':
|
|
141
|
+
for k, v in subnet_data.items():
|
|
142
|
+
if isinstance(v, dict):
|
|
143
|
+
capabilities_list = [v]
|
|
144
|
+
dict_values = cliutils.convert_dict_list_to_string(
|
|
145
|
+
capabilities_list
|
|
146
|
+
)
|
|
147
|
+
subnet_data[k] = dict_values
|
|
138
148
|
else:
|
|
139
149
|
share_network_subnet = share_client.share_network_subnets.create(
|
|
140
150
|
neutron_net_id=parsed_args.neutron_net_id,
|
|
@@ -308,13 +308,16 @@ class CreateShareNetwork(command.ShowOne):
|
|
|
308
308
|
elif parsed_args.availability_zone:
|
|
309
309
|
availability_zone = parsed_args.availability_zone
|
|
310
310
|
|
|
311
|
-
|
|
312
|
-
name
|
|
313
|
-
description
|
|
314
|
-
neutron_net_id
|
|
315
|
-
neutron_subnet_id
|
|
316
|
-
|
|
317
|
-
|
|
311
|
+
kwargs = {
|
|
312
|
+
"name": parsed_args.name,
|
|
313
|
+
"description": parsed_args.description,
|
|
314
|
+
"neutron_net_id": parsed_args.neutron_net_id,
|
|
315
|
+
"neutron_subnet_id": parsed_args.neutron_subnet_id,
|
|
316
|
+
}
|
|
317
|
+
if availability_zone:
|
|
318
|
+
kwargs['availability_zone'] = availability_zone
|
|
319
|
+
share_network = share_client.share_networks.create(**kwargs)
|
|
320
|
+
|
|
318
321
|
share_network_data = share_network._info
|
|
319
322
|
share_network_data.pop('links', None)
|
|
320
323
|
if parsed_args.formatter == 'table':
|
|
@@ -25,7 +25,7 @@ class ShareNetworkSubnetsCLITest(base.OSCClientTestBase):
|
|
|
25
25
|
share_network['id'])
|
|
26
26
|
|
|
27
27
|
self.assertEqual('True', check_result['compatible'])
|
|
28
|
-
self.assertEqual('
|
|
28
|
+
self.assertEqual('', check_result['hosts_check_result'])
|
|
29
29
|
|
|
30
30
|
def test_openstack_share_network_create_check_restart(self):
|
|
31
31
|
share_network = self.create_share_network()
|
|
@@ -34,4 +34,4 @@ class ShareNetworkSubnetsCLITest(base.OSCClientTestBase):
|
|
|
34
34
|
share_network['id'], restart_check=True)
|
|
35
35
|
|
|
36
36
|
self.assertEqual('True', check_result['compatible'])
|
|
37
|
-
self.assertEqual('
|
|
37
|
+
self.assertEqual('', check_result['hosts_check_result'])
|
|
@@ -79,8 +79,7 @@ class TestShareNetworkCreate(TestShareNetwork):
|
|
|
79
79
|
name=None,
|
|
80
80
|
description=None,
|
|
81
81
|
neutron_net_id=None,
|
|
82
|
-
neutron_subnet_id=None
|
|
83
|
-
availability_zone=None)
|
|
82
|
+
neutron_subnet_id=None)
|
|
84
83
|
|
|
85
84
|
self.assertCountEqual(self.columns, columns)
|
|
86
85
|
self.assertCountEqual(expected_data.values(), data)
|
|
@@ -22,6 +22,7 @@ Chen <dstbtgagt@foxmail.com>
|
|
|
22
22
|
Chris MacNaughton <chris.macnaughton@canonical.com>
|
|
23
23
|
Christian Berendt <berendt@b1-systems.de>
|
|
24
24
|
Chuck Fouts <fchuck@netapp.com>
|
|
25
|
+
Clifford Emeka <emclidon@gmail.com>
|
|
25
26
|
Clinton Knight <cknight@netapp.com>
|
|
26
27
|
Cloud User <stack@devstack-maari.novalocal>
|
|
27
28
|
Corey Bryant <corey.bryant@canonical.com>
|
|
@@ -160,6 +161,7 @@ luke.li <lilu7189@fiberhome.com>
|
|
|
160
161
|
maaoyu <maaoyu@inspur.com>
|
|
161
162
|
mark.sturdevant <mark.sturdevant@hpe.com>
|
|
162
163
|
melissaml <ma.lei@99cloud.net>
|
|
164
|
+
morozovalekseywot <morozovalekseywot@gmail.com>
|
|
163
165
|
namrata <namrata.sitlani@citynetwork.eu>
|
|
164
166
|
nidhimittalhada <nidhimittal19@gmail.com>
|
|
165
167
|
paulali <paulali@protonmail.com>
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-manilaclient
|
|
3
|
-
Version: 4.8.
|
|
3
|
+
Version: 4.8.1
|
|
4
4
|
Summary: Client library for OpenStack Manila API.
|
|
5
5
|
Home-page: https://docs.openstack.org/python-manilaclient/latest/
|
|
6
6
|
Author: OpenStack
|
|
7
7
|
Author-email: openstack-discuss@lists.openstack.org
|
|
8
|
-
License: UNKNOWN
|
|
9
|
-
Platform: UNKNOWN
|
|
10
8
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
9
|
Classifier: Environment :: Console
|
|
12
10
|
Classifier: Environment :: OpenStack
|
|
@@ -22,18 +20,20 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
23
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
24
22
|
Requires-Python: >=3.8
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Requires-Dist:
|
|
28
|
-
Requires-Dist:
|
|
29
|
-
Requires-Dist: oslo.
|
|
30
|
-
Requires-Dist: oslo.
|
|
31
|
-
Requires-Dist: oslo.
|
|
32
|
-
Requires-Dist:
|
|
33
|
-
Requires-Dist:
|
|
34
|
-
Requires-Dist:
|
|
35
|
-
Requires-Dist:
|
|
36
|
-
Requires-Dist:
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
License-File: AUTHORS
|
|
25
|
+
Requires-Dist: pbr !=2.1.0,>=2.0.0
|
|
26
|
+
Requires-Dist: oslo.config >=5.2.0
|
|
27
|
+
Requires-Dist: oslo.log >=3.36.0
|
|
28
|
+
Requires-Dist: oslo.serialization !=2.19.1,>=2.18.0
|
|
29
|
+
Requires-Dist: oslo.utils >=3.33.0
|
|
30
|
+
Requires-Dist: PrettyTable >=0.7.1
|
|
31
|
+
Requires-Dist: requests >=2.14.2
|
|
32
|
+
Requires-Dist: simplejson >=3.5.1
|
|
33
|
+
Requires-Dist: Babel !=2.4.0,>=2.3.4
|
|
34
|
+
Requires-Dist: osc-lib >=1.10.0
|
|
35
|
+
Requires-Dist: python-keystoneclient >=3.8.0
|
|
36
|
+
Requires-Dist: debtcollector >=1.2.0
|
|
37
37
|
|
|
38
38
|
========================
|
|
39
39
|
Team and repository tags
|
|
@@ -143,5 +143,3 @@ Quick-start using keystone::
|
|
|
143
143
|
.. _How to Contribute: https://docs.openstack.org/infra/manual/developers.html
|
|
144
144
|
.. _Release Notes: https://docs.openstack.org/releasenotes/python-manilaclient
|
|
145
145
|
|
|
146
|
-
|
|
147
|
-
|
|
@@ -35,8 +35,8 @@ manilaclient/osc/v2/share_groups.py,sha256=7njPDWgxF_tMwBkyZPEOhDf7qe0ThPENm2fYG
|
|
|
35
35
|
manilaclient/osc/v2/share_instance_export_locations.py,sha256=i5ulZz6PCDbZd_KXoE_Cj1toRRTXSt5Bru-R-HhPC08,3089
|
|
36
36
|
manilaclient/osc/v2/share_instances.py,sha256=1DlW2ldo6VjzBMgovozgDh2g6HDkHMLANS43ZecGhtQ,7645
|
|
37
37
|
manilaclient/osc/v2/share_limits.py,sha256=3TtNFRYKd6VsUDjrFL_OZXq92dVO2luMGVHAelu08g8,2202
|
|
38
|
-
manilaclient/osc/v2/share_network_subnets.py,sha256=
|
|
39
|
-
manilaclient/osc/v2/share_networks.py,sha256=
|
|
38
|
+
manilaclient/osc/v2/share_network_subnets.py,sha256=VPWCfRkDZ5YZusxIMpcU2I7ioqlg1IDvg3qEhGPXbBY,13540
|
|
39
|
+
manilaclient/osc/v2/share_networks.py,sha256=p76RERV_1aQJwRqACMn9vYH83NW3JAJ2zkhnK0EtvMg,27859
|
|
40
40
|
manilaclient/osc/v2/share_pools.py,sha256=4TjomBQby4D0fL43FFCfrfau0TTsv1i-MswZNFEPt9g,3636
|
|
41
41
|
manilaclient/osc/v2/share_replica_export_locations.py,sha256=FYUpNjb1jEzfCwmLh6-Kiczx_TKeVnOaQDCBoZZPn1s,2831
|
|
42
42
|
manilaclient/osc/v2/share_replicas.py,sha256=pc97Y2WPWKXkeZF2Oahxz2PfEyxQ3coUmy2eC3hj3vM,14367
|
|
@@ -87,7 +87,7 @@ manilaclient/tests/functional/osc/test_share_access_rules.py,sha256=AFNcdl0uRqeK
|
|
|
87
87
|
manilaclient/tests/functional/osc/test_share_backups.py,sha256=sWzpdxnz2KKX9BQ6nYFwMUlA74ZLFlmsVwcxciTKM1A,5178
|
|
88
88
|
manilaclient/tests/functional/osc/test_share_group_type_access.py,sha256=hjGjhCpz8N5PJdNY0AQrFX_kZ9PLZgNpElRw7H9mKd4,3533
|
|
89
89
|
manilaclient/tests/functional/osc/test_share_limits.py,sha256=nkQ7gQLTh9bwO-e4eU5WEK5D-IHJqOxQkUNL6BlMLOc,1281
|
|
90
|
-
manilaclient/tests/functional/osc/test_share_network_subnets.py,sha256
|
|
90
|
+
manilaclient/tests/functional/osc/test_share_network_subnets.py,sha256=SsLJmC2ZFyNFQiTFowzRTdoQDaaxoFA0traZdl8Pnvc,1414
|
|
91
91
|
manilaclient/tests/functional/osc/test_share_networks.py,sha256=_9vOnd_cc25HkBp7G-jA4m5x7LaEZvwzBBNzfG8ttII,3896
|
|
92
92
|
manilaclient/tests/functional/osc/test_share_pools.py,sha256=svBFXZrlIdP13rcS-SWRU9YIiXT9nns16sGjq7kX5eA,1539
|
|
93
93
|
manilaclient/tests/functional/osc/test_share_replica_export_locations.py,sha256=MsLgNKRWTANUm80Af7P2wFdNPVOJwOAoW3xY_W8wkUU,2618
|
|
@@ -132,7 +132,7 @@ manilaclient/tests/unit/osc/v2/test_share_instance_export_locations.py,sha256=F0
|
|
|
132
132
|
manilaclient/tests/unit/osc/v2/test_share_instances.py,sha256=OCgMnmdhAM6s7aayty9XHwv6Ohq6BFTrFxUhu74LRU8,12339
|
|
133
133
|
manilaclient/tests/unit/osc/v2/test_share_limits.py,sha256=BXXlPJ4fThHKlBdY9OYf7tynSLCqwPstXt1gV6xIrK0,3044
|
|
134
134
|
manilaclient/tests/unit/osc/v2/test_share_network_subnets.py,sha256=HNlYaF93wVVf0DlUG3Ejx8qio5hQYPlrMtyWUwhZoDs,16353
|
|
135
|
-
manilaclient/tests/unit/osc/v2/test_share_networks.py,sha256=
|
|
135
|
+
manilaclient/tests/unit/osc/v2/test_share_networks.py,sha256=21w-WJe58ltDdbSsNY1x08Us4nESmnO5O0PfjLqzl98,27390
|
|
136
136
|
manilaclient/tests/unit/osc/v2/test_share_pools.py,sha256=URIdUtT3eQqtLWCHRKGu4t6cmI45qItQg3JXWBvC-z0,5395
|
|
137
137
|
manilaclient/tests/unit/osc/v2/test_share_replica_export_locations.py,sha256=vdRF8FJxdoHT6XWuRpHgBK-va9q6td9ES2Hask3lfJY,3996
|
|
138
138
|
manilaclient/tests/unit/osc/v2/test_share_replicas.py,sha256=cdmUNK96olSe0TgOUMD8fVxsoX0hVJFkCHThcxxeUmc,22544
|
|
@@ -241,11 +241,11 @@ manilaclient/v2/shares.py,sha256=ZrA6k225c4haTYVLKq3c1nKjxtq1iWbxQFNwEU532Dk,318
|
|
|
241
241
|
manilaclient/v2/shell.py,sha256=W_kuVwubxzT7muCCB5WfVhPKrYh8Q70pbu3higD22LA,225608
|
|
242
242
|
manilaclient/v2/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
243
243
|
manilaclient/v2/contrib/list_extensions.py,sha256=_JSrPBEca2oR3dUbRNDBahAqo9V4bAEpNx0Si2gOWN4,1448
|
|
244
|
-
python_manilaclient-4.8.
|
|
245
|
-
python_manilaclient-4.8.
|
|
246
|
-
python_manilaclient-4.8.
|
|
247
|
-
python_manilaclient-4.8.
|
|
248
|
-
python_manilaclient-4.8.
|
|
249
|
-
python_manilaclient-4.8.
|
|
250
|
-
python_manilaclient-4.8.
|
|
251
|
-
python_manilaclient-4.8.
|
|
244
|
+
python_manilaclient-4.8.1.dist-info/AUTHORS,sha256=mmB-B7ece_hG2L_ZFgFykjkqWSmnxQS8m8keuz6cpMs,7305
|
|
245
|
+
python_manilaclient-4.8.1.dist-info/LICENSE,sha256=0vWIdNcdtTV9HZ7UlIezDadLSry5oS_2BzPolooTi4Y,11837
|
|
246
|
+
python_manilaclient-4.8.1.dist-info/METADATA,sha256=kILmawiIgzlgWbcHm_sf09mafeujA6oo_urbhTWy3ZM,5536
|
|
247
|
+
python_manilaclient-4.8.1.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
248
|
+
python_manilaclient-4.8.1.dist-info/entry_points.txt,sha256=bPgpr3XWT8Izm2szoipEn4cx2BZBra6Qq-rT0C5G0rc,11625
|
|
249
|
+
python_manilaclient-4.8.1.dist-info/pbr.json,sha256=v2WX5xcb8BtYP-uAuWQ_LAl_JTDkzoFkL-7xIfMkYX0,46
|
|
250
|
+
python_manilaclient-4.8.1.dist-info/top_level.txt,sha256=qaZZFY6QOsBxs6dp1YW7M0XnIHyctWinAWIOOrnA0pQ,13
|
|
251
|
+
python_manilaclient-4.8.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "453dc27", "is_release": true}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "06e96b7", "is_release": true}
|
|
File without changes
|
|
File without changes
|