aboutsummaryrefslogtreecommitdiffstats
path: root/AdminPanel
diff options
context:
space:
mode:
authorMatteo Pasotti <matteo.pasotti@gmail.com>2014-01-25 12:55:30 +0100
committerMatteo Pasotti <matteo.pasotti@gmail.com>2014-01-25 12:55:30 +0100
commit05611faf164f13a3e110e9540ab691f9f547e551 (patch)
treeb94db06e5ea2b3ea5853c694037a07df76268296 /AdminPanel
parentb6274e6f8e465f1a87526a9baef49280f58b2bed (diff)
downloadmanatools-05611faf164f13a3e110e9540ab691f9f547e551.tar
manatools-05611faf164f13a3e110e9540ab691f9f547e551.tar.gz
manatools-05611faf164f13a3e110e9540ab691f9f547e551.tar.bz2
manatools-05611faf164f13a3e110e9540ab691f9f547e551.tar.xz
manatools-05611faf164f13a3e110e9540ab691f9f547e551.zip
- implemented _modifyHost
Diffstat (limited to 'AdminPanel')
-rw-r--r--AdminPanel/Hosts/hosts.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/AdminPanel/Hosts/hosts.pm b/AdminPanel/Hosts/hosts.pm
index f8b1255d..3186be11 100644
--- a/AdminPanel/Hosts/hosts.pm
+++ b/AdminPanel/Hosts/hosts.pm
@@ -88,6 +88,13 @@ sub _dropHost {
return $self->configHosts->delete_host($host_ip);
}
+sub _modifyHost {
+ my $self = shift();
+ my $host_ip = shift();
+ my @host_definitions = @_;
+ return $self->configHosts->update_host($host_ip, hosts => @host_definitions);
+}
+
sub _writeHosts {
my $self = shift();
return $self->configHosts->write_hosts();