Provision working

This commit is contained in:
Deon George
2012-07-23 18:26:14 +10:00
parent dabdad9179
commit 25602454b7
2 changed files with 21 additions and 29 deletions

View File

@@ -186,11 +186,11 @@ class Controller_Task_Host extends Controller_Task {
if (isset($f[strtolower(get_class($this->hpo))][$b])) {
switch ($f[strtolower(get_class($this->hpo))][$b]) {
case 'NODOMAIN':
$rec[$b] = preg_replace('/.?'.$so->plugin()->name().'.$/i','',$rec[$b]);
$rec[$b] = preg_replace('/\.?'.$so->plugin()->name().'\.$/i','',$rec[$b]);
break;
case 'NOTRAILDOT':
$rec[$b] = preg_replace('/.$/','',$rec[$b]);
$rec[$b] = preg_replace('/\.$/','',$rec[$b]);
break;
default:
@@ -252,6 +252,8 @@ class Controller_Task_Host extends Controller_Task {
*/
public function action_provision() {
$result = $this->hpo->provision($this->so);
$this->action_setexpire();
print_r((string)$result);
}