mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 07:20:45 +00:00
Merge "volume list: don't fail when there's no compute service"
This commit is contained in:
commit
8f07476e53
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,6 @@ class ListVolume(command.Lister):
|
|||
def take_action(self, parsed_args):
|
||||
|
||||
volume_client = self.app.client_manager.volume
|
||||
compute_client = self.app.client_manager.compute
|
||||
identity_client = self.app.client_manager.identity
|
||||
|
||||
if parsed_args.long:
|
||||
|
|
@ -393,6 +392,7 @@ class ListVolume(command.Lister):
|
|||
# Cache the server list
|
||||
server_cache = {}
|
||||
try:
|
||||
compute_client = self.app.client_manager.compute
|
||||
for s in compute_client.servers.list():
|
||||
server_cache[s.id] = s
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue