Skip to content

Commit 125133d

Browse files
committed
volume: Temporarily ignore new volume columns
Change-Id: I4296766a1576c64eb3927cb0557aef5346b2d6f6 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent 03aa172 commit 125133d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

openstackclient/volume/v3/volume.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,21 @@ def take_action(self, parsed_args):
339339
metadata=parsed_args.properties,
340340
bootable=parsed_args.bootable,
341341
)
342-
return zip(*sorted(volume.items()))
342+
data = {}
343+
for key, value in volume.to_dict().items():
344+
# FIXME(stephenfin): Stop ignoring these once we bump SDK
345+
# https://review.opendev.org/c/openstack/openstacksdk/+/945836/
346+
if key in (
347+
'cluster_name',
348+
'consumes_quota',
349+
'encryption_key_id',
350+
'service_uuid',
351+
'shared_targets',
352+
'volume_type_id',
353+
):
354+
continue
355+
data[key] = value
356+
return zip(*sorted(data.items()))
343357

344358
source_volume = None
345359
if parsed_args.source:

0 commit comments

Comments
 (0)