public function getOsClient(\Scalr_Environment $environment, $cloudLocation) { $client = $environment->openstack($this->platform, $cloudLocation); if (defined("OPENSTACK_DEBUG") && OPENSTACK_DEBUG == 1) { $client->setDebug(true); } return $client; }