saltstack/salt-cloud — pull request #645 by aventurella (2013-06-19 13:46:45+00:00)
Title: Handle the case where a provider has no existing nodes available yet.

When launching a node on a provider with no existing nodes, this would previously fail with a KeyError as mapped_providers was assumed to always contain data: `mapped_providers[alias][driver]`.

In the case where a provider has no existing nodes however, mapped_providers will be `{}`. This provide defaults in that case.