ovn-nbctl: Avoid minor code duplication.
authorBen Pfaff <blp@nicira.com>
Thu, 1 Oct 2015 19:41:54 +0000 (12:41 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 2 Oct 2015 15:22:33 +0000 (08:22 -0700)
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
ovn/utilities/ovn-nbctl.c

index c308ddc..2d2a5ee 100644 (file)
@@ -142,7 +142,7 @@ nbctl_default_db(void)
     if (!def) {
         def = getenv("OVN_NB_DB");
         if (!def) {
-            def = xasprintf("unix:%s/db.sock", ovs_rundir());
+            def = ctl_default_db();
         }
     }
     return def;