saltstack/salt-cloud — pull request #879 by JustinCarmony (2013-10-26 06:03:21+00:00)
Title: Fixing Digital Ocean VMs being ignored in delete map commands

DO NOT MERGE RIGHT AWAY! PLEASE READ!

This is the simple quick fix, but might not be the right approach. I believe the apache cloud lib normalizes the vm state data so that if a VM is up and running it returns a state of "running." However, because the digital ocean API is used directly, it returns the state as "Active", hence it gets popped out of the list.

A better fix than what I have bellow is having the Digital Ocean driver normalize the value from active to running, but I Don't know if that would break anything for others. So hence I'm asking which approach we should do. :)

This pull request is in response to the issue #875