Fix error: ok is not defined

Running "hg_release:minor" (hg_release) task
Fatal error: ok is not defined