From d549651f6d6699d0c429ab9eed8ffd0d6fe0a4c9 Mon Sep 17 00:00:00 2001 From: Jake Yip Date: Thu, 22 Oct 2020 14:58:37 +1100 Subject: [PATCH] Show docker_volume_size in `cluster show` docker_volume_size is an parameter for creating cluster, it should also be displayed when showing it Change-Id: I354043496cc60a99c362f7d8bf36d5ca27ed6d30 --- magnumclient/osc/v1/clusters.py | 1 + magnumclient/tests/osc/unit/v1/fakes.py | 1 + 2 files changed, 2 insertions(+) diff --git a/magnumclient/osc/v1/clusters.py b/magnumclient/osc/v1/clusters.py index 0a7bd3c5..18a03d90 100644 --- a/magnumclient/osc/v1/clusters.py +++ b/magnumclient/osc/v1/clusters.py @@ -48,6 +48,7 @@ CLUSTER_ATTRIBUTES = [ 'create_timeout', 'node_count', 'discovery_url', + 'docker_volume_size', 'master_count', 'container_version', 'name', diff --git a/magnumclient/tests/osc/unit/v1/fakes.py b/magnumclient/tests/osc/unit/v1/fakes.py index abcf1a18..215ae9ca 100644 --- a/magnumclient/tests/osc/unit/v1/fakes.py +++ b/magnumclient/tests/osc/unit/v1/fakes.py @@ -253,6 +253,7 @@ class FakeCluster(object): 'create_timeout': 60, 'node_count': 1, 'discovery_url': 'https://fake.cluster', + 'docker_volume_size': 1, 'master_count': 1, 'container_version': None, 'name': 'fake-cluster',