[ovs-dev] [PATCH] ovn-nbctl: Avoid minor code duplication.

Ben Pfaff blp at nicira.com
Fri Oct 2 15:23:15 UTC 2015


Thanks, applied.

On Fri, Oct 02, 2015 at 08:21:39AM -0700, Justin Pettit wrote:
> Acked-by: Justin Pettit <jpettit at nicira.com>
> 
> --Justin
> 
> 
> > On Oct 2, 2015, at 8:17 AM, Ben Pfaff <blp at nicira.com> wrote:
> > 
> > Signed-off-by: Ben Pfaff <blp at nicira.com>
> > ---
> > ovn/utilities/ovn-nbctl.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/ovn/utilities/ovn-nbctl.c b/ovn/utilities/ovn-nbctl.c
> > index c308ddc..2d2a5ee 100644
> > --- a/ovn/utilities/ovn-nbctl.c
> > +++ b/ovn/utilities/ovn-nbctl.c
> > @@ -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;
> > -- 
> > 2.1.3
> > 
> > _______________________________________________
> > dev mailing list
> > dev at openvswitch.org
> > http://openvswitch.org/mailman/listinfo/dev
> 



More information about the dev mailing list