TT#185701 fix deactivate_domain

we were sending this command:

> host:deactivate('NGCP::Panel::Model::DB::domains=HASH(0x55955564e6c8)')

Change-Id: I63271b05ee12d0ff3767b5d9376aec22352cb4d5
(cherry picked from commit 78a447f45f)
mr10.5.4
Victor Seva 3 years ago committed by Marco Capetta
parent 231a1d3479
commit 87a959cbba

@ -102,7 +102,7 @@ sub DELETE :Allow {
$guard->commit;
try {
$self->xmpp_domain_disable($c, $domain) if $xmpp_reload;
$self->xmpp_domain_disable($c, $domain->domain) if $xmpp_reload;
NGCP::Panel::Utils::XMLDispatcher::sip_domain_reload($c) if $sip_reload;
} catch($e) {
$c->log->error("failed to deactivate domain: $e"); # TODO: user, message, trace, ...

@ -36,7 +36,7 @@ sub activate_domain {
sub deactivate_domain {
my ($c, $domain) = @_;
$domain = lc $domain;
my $t = Net::Telnet->new(Timeout => 5, ErrMode => 'die');
my $hosts = _load_servers($c);
my $ok = 1;

Loading…
Cancel
Save