diff --git a/app/Plugin/CrateModule/Model/Datasource/Crate.php b/app/Plugin/CrateModule/Model/Datasource/Crate.php index f7ae1147e0..2652bddab6 100644 --- a/app/Plugin/CrateModule/Model/Datasource/Crate.php +++ b/app/Plugin/CrateModule/Model/Datasource/Crate.php @@ -198,8 +198,7 @@ function describe($model){ public function connect(){ - - $dsn = 'crate:cratedb1.oitc.itn:4200'; + $dsn = sprintf('crate:%s', $this->config['host']); $flags = [ PDO::ATTR_TIMEOUT => $this->config['timeout'] ];