Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Add filter on disk list for attach/detach element #184

Closed
aegiap opened this issue Apr 28, 2016 · 1 comment
Closed

Add filter on disk list for attach/detach element #184

aegiap opened this issue Apr 28, 2016 · 1 comment

Comments

@aegiap
Copy link
Contributor

aegiap commented Apr 28, 2016

Current

Running the cli 0.18, I notice there is no filter in the disk list command to only see disk attached to VMs or disk fully detached.

The list method for IP have these filter and it is usefull:

$ gandi ip list --help | grep tach ; 
  --attached                      Only display attached ip.
  --detached                      Only display detached ip.

The current help for disk list command:

$ gandi disk list --help
Usage: gandi disk list [OPTIONS]

  List disks.

Options:
  --only-data                     Only display data disks.
  --only-snapshot                 Only display snapshots.
  --type                          Display types.
  --id                            Display ids.
  --vm                            Display vms.
  --snapshotprofile               Display snapshot profile.
  --datacenter [FR-SD2|US-BA1|LU-BI1|FR|US|LU]
                                  Filter results by datacenter.
  --limit INTEGER                 Limit number of results.  [default: 100]
  --help                          Show this message and exit.

What I like to have

$ gandi disk list --help  | grep tach
  --attached                       Only display attached disks to VM.
  --detached                      Only display detached disks.
@sayoun sayoun closed this as completed in 76c8dd4 Aug 12, 2016
@sayoun
Copy link
Contributor

sayoun commented Aug 12, 2016

Will be available in next release

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants