ensure upgrade recipe only run if attribute is enabled