Can't provision VM from image/template

Problem:
Set up compute instance task failed with the following error: too few arguments

Expected outcome:
Successful creation of VM

Foreman and Proxy versions:

Foreman and Proxy plugin versions:
Ansible
Version3.0.1
BMC
Version2.0.3
DHCP
Version2.0.3

DNS
Version2.0.3

Dynflow
Version0.2.4
HTTPBoot
Version2.0.3
Pulp
Version2.0.0
Pulp server version2.21.3Database connectionMessaging connectionWorkers6
Supported Content Types
deb
puppet
yum
Pulpcore
Version2.0.0
Supported Content Types
docker
file
SSH
Version0.3.0
TFTP
Version2.0.3
TFTP serverfalse
Templates
Version2.0.3

Distribution and version:
v2.0.3

Other relevant data:

I tried steps I found here: Problem provisionning Host on VMWare from Image

same message occurred. I’ve since change the file back

In the file /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb, inside the clone_vm function, I added those lines :

#had to format tilde’s

templates = client.list_templates
templates.each { |t|
if t[‘id’] == args[:image_id]
opts[‘template_path’] = t[‘name’]
end }

#“template_path” => args[:image_id],
“template_path” => “//ITS/Not Backed Up/”,

I “solved” this by reimporting the template I was working with and choosing the new image (even though it’s the same one) based on what OS I had assigned to it (i.e. CentOS 7 vs CentOS 7.8.2003)