Initialize variable before using
Change-Id: Id908b27d6e17692de4ad3a60e84cd00b496133b9
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Issue-ID: MULTICLOUD-304
 
 // Run a command via ovn-nbctl
 func (ctl *OVNNbctl) Run(args ...string) (string, string, error) {
+       if ctl.exec == nil {
+               ctl.exec = kexec.New()
+       }
        if ctl.path == "" {
                nbctlPath, err := ctl.exec.LookPath(ovnNbctlCommand)
                if err != nil {
                }
                ctl.path = nbctlPath
        }
-       if ctl.exec == nil {
-               ctl.exec = kexec.New()
-       }
 
        stdout := &bytes.Buffer{}
        stderr := &bytes.Buffer{}