Was using an incorrect variable in validating the cmpackage release type