Portal generator error message

After a new install of Open Ondemand 3.0.1 I am getting an error running the portal generator:

NoMethodError:undefined method `debian_legacy?’

Is there something I am missing? I am running on RHEL 8.

I figured this out. my modifications to the template and view.rb was causing it.