Better munging if we are using a service
authorGreg Sabino Mullane <greg@endpoint.com>
Wed, 9 Apr 2014 23:18:20 +0000 (19:18 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Wed, 9 Apr 2014 23:18:20 +0000 (19:18 -0400)
bucardo

diff --git a/bucardo b/bucardo
index 2cdef173d780cad8cad6bf002da0080bb78bbd4c..bed06865050f6452216d3dcf87279308b4b75094 100755 (executable)
--- a/bucardo
+++ b/bucardo
@@ -1427,6 +1427,8 @@ sub add_database {
     if (exists $vals->{dbservice}) {
         delete $vals->{dbport};
         delete $vals->{dbhost};
+        $cols =~ s/dbhost,dbport,//;
+        $phs =~ s/\Q?,?,//;
     }
 
     ## Attempt to insert this into the database