Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
3df267ab
Commit
3df267ab
authored
Apr 09, 2021
by
Francesc Guasch
Committed by
frankiejol
Apr 12, 2021
Browse files
refactor(test): copy config for mock domains
parent
cc274f5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/Domain/Void.pm
View file @
3df267ab
...
...
@@ -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
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment