python-manilaclient 4.9.0__py3-none-any.whl → 4.9.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.
@@ -211,6 +211,8 @@ class ShowShareNetwork(command.ShowOne):
211
211
  parsed_args.share_network)
212
212
 
213
213
  data = share_network._info
214
+ if 'share_network_subnets' not in data:
215
+ data['share_network_subnets'] = []
214
216
 
215
217
  # Special mapping for columns to make the output easier to read:
216
218
  # 'metadata' --> 'properties'
@@ -308,14 +310,19 @@ class CreateShareNetwork(command.ShowOne):
308
310
  elif parsed_args.availability_zone:
309
311
  availability_zone = parsed_args.availability_zone
310
312
 
311
- share_network = share_client.share_networks.create(
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
- availability_zone=availability_zone,
317
- )
313
+ kwargs = {
314
+ "name": parsed_args.name,
315
+ "description": parsed_args.description,
316
+ "neutron_net_id": parsed_args.neutron_net_id,
317
+ "neutron_subnet_id": parsed_args.neutron_subnet_id,
318
+ }
319
+ if availability_zone:
320
+ kwargs['availability_zone'] = availability_zone
321
+ share_network = share_client.share_networks.create(**kwargs)
322
+
318
323
  share_network_data = share_network._info
324
+ if 'share_network_subnets' not in share_network_data:
325
+ share_network_data['share_network_subnets'] = []
319
326
  share_network_data.pop('links', None)
320
327
  if parsed_args.formatter == 'table':
321
328
  share_network_data['share_network_subnets'] = (
@@ -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)
@@ -164,6 +164,7 @@ maaoyu <maaoyu@inspur.com>
164
164
  mark.sturdevant <mark.sturdevant@hpe.com>
165
165
  melakualehegn <melakualehegn34@gmail.com>
166
166
  melissaml <ma.lei@99cloud.net>
167
+ morozovalekseywot <morozovalekseywot@gmail.com>
167
168
  namrata <namrata.sitlani@citynetwork.eu>
168
169
  nidhimittalhada <nidhimittal19@gmail.com>
169
170
  paulali <paulali@protonmail.com>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-manilaclient
3
- Version: 4.9.0
3
+ Version: 4.9.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
@@ -22,15 +22,15 @@ Classifier: Programming Language :: Python :: 3.9
22
22
  Classifier: Programming Language :: Python :: 3.10
23
23
  Classifier: Programming Language :: Python :: 3.11
24
24
  Requires-Python: >=3.8
25
- Requires-Dist: Babel (!=2.4.0,>=2.3.4)
25
+ Requires-Dist: Babel (>=2.5.0)
26
26
  Requires-Dist: PrettyTable (>=0.7.1)
27
27
  Requires-Dist: debtcollector (>=1.2.0)
28
28
  Requires-Dist: osc-lib (>=1.10.0)
29
29
  Requires-Dist: oslo.config (>=5.2.0)
30
30
  Requires-Dist: oslo.log (>=3.36.0)
31
- Requires-Dist: oslo.serialization (!=2.19.1,>=2.18.0)
31
+ Requires-Dist: oslo.serialization (>=2.20.0)
32
32
  Requires-Dist: oslo.utils (>=3.33.0)
33
- Requires-Dist: pbr (!=2.1.0,>=2.0.0)
33
+ Requires-Dist: pbr (>=3.0.0)
34
34
  Requires-Dist: python-keystoneclient (>=3.8.0)
35
35
  Requires-Dist: requests (>=2.14.2)
36
36
  Requires-Dist: simplejson (>=3.5.1)
@@ -36,7 +36,7 @@ manilaclient/osc/v2/share_instance_export_locations.py,sha256=i5ulZz6PCDbZd_KXoE
36
36
  manilaclient/osc/v2/share_instances.py,sha256=1DlW2ldo6VjzBMgovozgDh2g6HDkHMLANS43ZecGhtQ,7645
37
37
  manilaclient/osc/v2/share_limits.py,sha256=3TtNFRYKd6VsUDjrFL_OZXq92dVO2luMGVHAelu08g8,2202
38
38
  manilaclient/osc/v2/share_network_subnets.py,sha256=VPWCfRkDZ5YZusxIMpcU2I7ioqlg1IDvg3qEhGPXbBY,13540
39
- manilaclient/osc/v2/share_networks.py,sha256=9iRXepC192lYDKu0NIcHXEGTRZwlUWeV68C4HHarv6Q,27777
39
+ manilaclient/osc/v2/share_networks.py,sha256=-mmms_53sHM2FtDHn_x_vOo8bxvxOVUEF40J3Iho0lc,28077
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
@@ -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=BO9ncD-cGAq92HFg3MD28olVhD25r8YvnX4ZUSOd0_w,27426
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=Aletqm1t0nO62tBcJGw0QRNPCuN6XgJjPJXCQIl0TCk,321
241
241
  manilaclient/v2/shell.py,sha256=AouOcMAH9752wTmNOX4ueg6Yd6xGsM1JvTl8xvGGJko,226091
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.9.0.dist-info/AUTHORS,sha256=SfhPcM8Oqz6fp6QScQCAMYKOgvU5-UWUitRqJjBWgMA,7426
245
- python_manilaclient-4.9.0.dist-info/LICENSE,sha256=0vWIdNcdtTV9HZ7UlIezDadLSry5oS_2BzPolooTi4Y,11837
246
- python_manilaclient-4.9.0.dist-info/METADATA,sha256=mT-l0MzhODFGz-8nFamw9-fV7wGpcLEZY3tumHHWT7o,5553
247
- python_manilaclient-4.9.0.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
248
- python_manilaclient-4.9.0.dist-info/entry_points.txt,sha256=-vfysXuwIYFL-CeP5OT0UH10KLPzH2dW5h7fTI16jL4,11626
249
- python_manilaclient-4.9.0.dist-info/pbr.json,sha256=f1JhttQAg5lZlhZXOg1oX_MJ0FRnR1cC30vmql-Sb6E,46
250
- python_manilaclient-4.9.0.dist-info/top_level.txt,sha256=qaZZFY6QOsBxs6dp1YW7M0XnIHyctWinAWIOOrnA0pQ,13
251
- python_manilaclient-4.9.0.dist-info/RECORD,,
244
+ python_manilaclient-4.9.1.dist-info/AUTHORS,sha256=xEa1Tnkwr9cwxvQkfFKJoQdK36IKkQ9KnaEpUt1fCdA,7474
245
+ python_manilaclient-4.9.1.dist-info/LICENSE,sha256=0vWIdNcdtTV9HZ7UlIezDadLSry5oS_2BzPolooTi4Y,11837
246
+ python_manilaclient-4.9.1.dist-info/METADATA,sha256=R7n4_-v0AeCp1phunXJzow9VoziWze0QQxj_UtfP1fg,5528
247
+ python_manilaclient-4.9.1.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
248
+ python_manilaclient-4.9.1.dist-info/entry_points.txt,sha256=-vfysXuwIYFL-CeP5OT0UH10KLPzH2dW5h7fTI16jL4,11626
249
+ python_manilaclient-4.9.1.dist-info/pbr.json,sha256=1TFQin0O3GMsapQlwsNuQtDaeNGAa7TE1NWTgYTlFqw,46
250
+ python_manilaclient-4.9.1.dist-info/top_level.txt,sha256=qaZZFY6QOsBxs6dp1YW7M0XnIHyctWinAWIOOrnA0pQ,13
251
+ python_manilaclient-4.9.1.dist-info/RECORD,,
@@ -0,0 +1 @@
1
+ {"git_version": "85f2173", "is_release": true}
@@ -1 +0,0 @@
1
- {"git_version": "56ba694", "is_release": true}