Remove unused helper volume methods in v2 shell
These were probably missed when we removed the volume proxy code in Newton. Change-Id: I5b1413ad61404b31d8d3ffb392a314f52381164a
This commit is contained in:
parent
fdc5aa5d5c
commit
199fc67b46
|
@ -2416,36 +2416,10 @@ def do_remove_fixed_ip(cs, args):
|
|||
server.remove_fixed_ip(args.address)
|
||||
|
||||
|
||||
def _find_volume(cs, volume):
|
||||
"""Get a volume by name or ID."""
|
||||
return utils.find_resource(cs.volumes, volume)
|
||||
|
||||
|
||||
def _find_volume_snapshot(cs, snapshot):
|
||||
"""Get a volume snapshot by name or ID."""
|
||||
return utils.find_resource(cs.volume_snapshots, snapshot)
|
||||
|
||||
|
||||
def _print_volume(volume):
|
||||
utils.print_dict(volume._info)
|
||||
|
||||
|
||||
def _print_volume_snapshot(snapshot):
|
||||
utils.print_dict(snapshot._info)
|
||||
|
||||
|
||||
def _translate_volume_keys(collection):
|
||||
_translate_keys(collection,
|
||||
[('displayName', 'display_name'),
|
||||
('volumeType', 'volume_type')])
|
||||
|
||||
|
||||
def _translate_volume_snapshot_keys(collection):
|
||||
_translate_keys(collection,
|
||||
[('displayName', 'display_name'),
|
||||
('volumeId', 'volume_id')])
|
||||
|
||||
|
||||
def _translate_availability_zone_keys(collection):
|
||||
_translate_keys(collection,
|
||||
[('zoneName', 'name'), ('zoneState', 'status')])
|
||||
|
|
Loading…
Reference in New Issue