Commit 3df267ab authored by Francesc Guasch's avatar Francesc Guasch Committed by frankiejol
Browse files

refactor(test): copy config for mock domains

parent cc274f5f
......@@ -999,4 +999,13 @@ sub _check_port($self,@args) {
return 0;
}
sub copy_config($self, $domain) {
my $config_new = $self->_load();
for my $field ( keys %$config_new ) {
my $value = $config_new->{$field};
$value = 0 if $field eq 'is_active';
$self->_store($field, $value);
}
}
1;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment