OOIION-1856: Fixed bug in policy function for activate/deactivate deployment