diff --git a/app/assets/javascripts/controllers/catalog/catalog_item_form_controller.js b/app/assets/javascripts/controllers/catalog/catalog_item_form_controller.js index 5140c0b6958..34ba4f23a0b 100644 --- a/app/assets/javascripts/controllers/catalog/catalog_item_form_controller.js +++ b/app/assets/javascripts/controllers/catalog/catalog_item_form_controller.js @@ -74,7 +74,7 @@ ManageIQ.angular.app.controller('catalogItemFormController', ['$scope', 'catalog vm.catalogItemModel.provisioning_machine_credential_id = configData.provision.credential_id; vm.catalogItemModel.provisioning_network_credential_id = configData.provision.network_credential_id; vm.catalogItemModel.provisioning_cloud_credential_id = configData.provision.cloud_credential_id; - vm.catalogItemModel.provisioning_inventory = configData.provision.inventory; + vm.catalogItemModel.provisioning_inventory = configData.provision.hosts; vm.catalogItemModel.provisioning_dialog_existing = configData.provision.dialog_id ? "existing" : "create"; vm.catalogItemModel.provisioning_dialog_id = configData.provision.dialog_id; vm.catalogItemModel.provisioning_dialog_name = configData.provision.new_dialog_name; @@ -88,7 +88,7 @@ ManageIQ.angular.app.controller('catalogItemFormController', ['$scope', 'catalog vm.catalogItemModel.retirement_machine_credential_id = configData.retirement.credential_id; vm.catalogItemModel.retirement_network_credential_id = configData.retirement.network_credential_id; vm.catalogItemModel.retirement_cloud_credential_id = configData.retirement.cloud_credential_id; - vm.catalogItemModel.retirement_inventory = configData.retirement.inventory; + vm.catalogItemModel.retirement_inventory = configData.retirement.hosts; vm.catalogItemModel.retirement_dialog_existing = configData.retirement.dialog_id ? "existing" : "create"; vm.catalogItemModel.retirement_dialog_id = configData.retirement.dialog_id; vm.catalogItemModel.retirement_dialog_name = configData.retirement.new_dialog_name; diff --git a/app/views/layouts/angular/_ansible_form_options_angular.html.haml b/app/views/layouts/angular/_ansible_form_options_angular.html.haml index bfdc6042c5f..6d900fb89da 100644 --- a/app/views/layouts/angular/_ansible_form_options_angular.html.haml +++ b/app/views/layouts/angular/_ansible_form_options_angular.html.haml @@ -86,7 +86,7 @@ = _("Hosts") .col-md-8 %input.form-control{:type => "text", - 'ng-model' => "vm.#{ng_model}.#{prefix}_inventory", + 'ng-model' => "#{ng_model}.#{prefix}_inventory", :name => "#{prefix}_inventory", :maxlength => 50, "miqrequired" => "", @@ -161,7 +161,6 @@ .form-group %label.col-md-2.control-label = _("Dialog") - {{#{ng_model}.#{prefix}_dialog_existing}} .col-md-4 %label.radio %input{"ng-model" => "vm.#{prefix}_dialog_existing", :type => "radio", :value => "existing", "ng-click" => "vm.toggleDialogSelection('#{prefix}', 'existing')", "ng-checked" => "#{ng_model}.#{prefix}_dialog_existing == 'existing'"}