diff mbox series

[ovs-dev,v2] Initialize the right database.

Message ID 1550192389-4169-1-git-send-email-ted.elhourani@nutanix.com
State Accepted
Commit a62a96099186d5f369ba8c5faa088e432db60fcd
Headers show
Series [ovs-dev,v2] Initialize the right database. | expand

Commit Message

Ted Elhourani Feb. 15, 2019, 12:59 a.m. UTC
Use value of db parameter in order to initialize the correct database.

Signed-off-by: Ted Elhourani <ted.elhourani@nutanix.com>
---
 ovn/utilities/ovn-ctl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ben Pfaff Feb. 15, 2019, 4:08 a.m. UTC | #1
On Fri, Feb 15, 2019 at 12:59:57AM +0000, Ted Elhourani wrote:
> Use value of db parameter in order to initialize the correct database.
> 
> Signed-off-by: Ted Elhourani <ted.elhourani@nutanix.com>

Thank you.

I applied this to master and backported as far as branch-2.9.
diff mbox series

Patch

diff --git a/ovn/utilities/ovn-ctl b/ovn/utilities/ovn-ctl
index 1e369b1..f1297a2 100755
--- a/ovn/utilities/ovn-ctl
+++ b/ovn/utilities/ovn-ctl
@@ -222,7 +222,7 @@  $cluster_remote_port
     # Initialize the database if it's running standalone,
     # active-passive, or is the first server in a cluster.
     if test -z "$cluster_remote_addr"; then
-        ovn-nbctl init
+        ovn-${db}ctl init
     fi
 
     if test $mode = cluster; then