 
   shareCredentials: (credentials, requiredProviders, callback) ->
 
-    for selectedProvider in requiredProviders
-      break  if selectedProvider in ['aws', 'vagrant']
-
+    selectedProvider = null
+    for provider in requiredProviders when provider in @providers
+      selectedProvider = provider
     selectedProvider ?= (Object.keys credentials ? { aws: yes }).first
-    selectedProvider ?= 'aws'
 
     creds = Object.keys credentials
     { groupsController } = kd.singletons

    if method?
      switch method
        when 'reinit'
          return NotSupported  if provider in ['aws', 'vagrant']
        when 'createSnapshot'
          return NotSupported  if provider in ['aws', 'softlayer', 'vagrant']




module.exports = class ComputeController extends KDController


  @providers = globals.config.providers._getSupportedProviders()
  @Error     = {
    'TimeoutError', 'KiteError', 'NotSupported'
    Pending: '107', NotVerified: '500'
