func validateProfile(prof string) error {
	hooks.Debug(fmt.Sprintf("edgex-asc:configure:validateProfile: profile is %s", prof))
	if prof == "" {
		return nil
	}
	path := fmt.Sprintf("%s/config/res/%s/configuration.toml", hooks.SnapData, prof)
	hooks.Debug(fmt.Sprintf("edgex-asc:configure:validateProfile: checking if %s exists", path))
	_, err := os.Stat(path)
	if err != nil {
		return errors.New(fmt.Sprintf("profile %s has no configuration.toml", prof))
	}
	return nil
}
validateProfile processes the snap 'profile' configure option, ensuring that the directory
and associated configuration.toml file in $SNAP_DATA both exist.
package main
import (
	"errors"
	"fmt"
	"os"
	"strings"
	hooks "github.com/canonical/edgex-snap-hooks/v2"
)
var cli *hooks.CtlCli = hooks.NewSnapCtl()