File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ def _populate_report_api(self):
584584 # Set ansible roles
585585 if self .get_option ('want_ansible_roles' ):
586586 ansible_roles = self ._get_ansible_roles (host ['id' ])
587- self .inventory .set_variable (host_name , 'foreman_roles ' , ansible_roles )
587+ self .inventory .set_variable (host_name , 'foreman_ansible_roles ' , ansible_roles )
588588
589589 hostvars = self .inventory .get_host (host_name ).get_vars ()
590590 self ._set_composite_vars (self .get_option ('compose' ), hostvars , host_name , strict )
@@ -653,7 +653,7 @@ def _populate_host_api(self):
653653 # Set ansible roles
654654 if self .get_option ('want_ansible_roles' ):
655655 ansible_roles = self ._get_ansible_roles (host ['id' ])
656- self .inventory .set_variable (host_name , 'foreman_roles ' , ansible_roles )
656+ self .inventory .set_variable (host_name , 'foreman_ansible_roles ' , ansible_roles )
657657
658658 # set host vars from facts
659659 if self .get_option ('want_facts' ):
You can’t perform that action at this time.
0 commit comments