func shouldWarnJuju1x() bool { if _, err := execLookPath(juju1xCmdName); err != nil { return false } return osenv.Juju1xEnvConfigExists() && !juju2xConfigDataExists() }
func shouldWarnJuju1x() bool { // this code only applies to Ubuntu, where we renamed Juju 1.x to juju-1. ostype, err := series.GetOSFromSeries(series.HostSeries()) if err != nil || ostype != utilsos.Ubuntu { return false } return osenv.Juju1xEnvConfigExists() && !juju2xConfigDataExists() }