Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fall back to OpenCloud\OpenStack if necessary
  • Loading branch information
VeggieMeat committed Oct 9, 2013
1 parent a0d3421 commit f0cf758
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/provider/opencloud_provider.module
Expand Up @@ -290,6 +290,9 @@ function opencloud_provider_connect($provider) {

// Determine the class that we should use to make the connection.
$class = 'OpenCloud\\' . $provider->type;
if (!class_exists($class)) {
$class = 'OpenCloud\OpenStack';
}

// Create a new connection object.
$connection = new $class($provider->url, $credentials);
Expand Down

0 comments on commit f0cf758

Please sign in to comment.