Be forgiving of "bucardo_ctl add herd foo table=bar"
authorGreg Sabino Mullane <greg@endoint.com>
Wed, 3 Feb 2010 16:31:57 +0000 (11:31 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Wed, 3 Feb 2010 16:31:57 +0000 (11:31 -0500)
bucardo_ctl

index f6165ef6dd0cc96a9be09802d7e96fd7167d7af6..1408834ade63e3bc6a6e392f7fb0e0737e5b4436 100755 (executable)
@@ -3248,6 +3248,7 @@ sub add_herd {
 
        my %goat2add;
        for my $rel (@nouns) {
+               $rel =~ s/(?:sequence|table)=(\w.*)/$1/;
                if (! exists $goatlist->{$rel}) {
                        die qq{Could not find a table or sequence named "$rel"\n};
                }