8000 Add more logic around droplet deletes by bryanl · Pull Request #36 · digitalocean/doctl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add more logic around droplet deletes #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 6, 2016
Merged

Conversation

bryanl
Copy link
Contributor
@bryanl bryanl commented Apr 4, 2016

When deleting droplets, cycle through the following logic:

  • check for ambiguous names. e.g. multiple droplets named ubuntu
  • build a list of droplets to delete and execute them all at once
  • don't allow deleting the same droplet twice (by name or id)

Fixes #18

// if list has strings in it, fetch the list
list, err := ds.List()
if err != nil {
return errors.New("unable to create list of droplets")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fmt.Errorf to get the error, otherwise it's lost

8000
@aybabtme
Copy link
Contributor
aybabtme commented Apr 6, 2016

some comments but otherwise 🚢

When deleting droplets, cycle through the following logic:

* check for ambiguous names. e.g. multiple droplets named ubuntu
* build a list of droplets to delete and execute them all at once
* don't allow deleting the same droplet twice (by name or id)

Fixes #18
@bryanl bryanl force-pushed the droplet-delete-ambiguous branch from 833d00c to 648be63 Compare April 6, 2016 15:38
@bryanl bryanl merged commit 8ed0083 into master Apr 6, 2016
@bryanl bryanl deleted the droplet-delete-ambiguous branch April 6, 2016 15:40
andrewsomething pushed a commit to andrewsomething/doctl that referenced this pull request Jun 8, 2016
Update commands to use args instead of flags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0