fix saving inventory variables

This commit is contained in:
Keith Grant
2019-03-18 16:17:19 -04:00
parent ac5dec272b
commit b28409c1c7

View File

@@ -66,15 +66,14 @@ function(i18n) {
dataContainer: 'body', dataContainer: 'body',
control: '<instance-groups-multiselect instance-groups="instance_groups" field-is-disabled="!(inventory_obj.summary_fields.user_capabilities.edit || canAdd)"></instance-groups-multiselect>', control: '<instance-groups-multiselect instance-groups="instance_groups" field-is-disabled="!(inventory_obj.summary_fields.user_capabilities.edit || canAdd)"></instance-groups-multiselect>',
}, },
inventory_variables: { variables: {
// realName: 'variables', root: 'variables',
root: 'inventory',
label: i18n._('Variables'), label: i18n._('Variables'),
type: 'code_mirror', type: 'code_mirror',
class: 'Form-formGroup--fullWidth', class: 'Form-formGroup--fullWidth',
// rows: 6, // rows: 6,
// "default": "---", // "default": "---",
variables: 'inventory_variables', variables: 'variables',
awPopOver: i18n._('Enter inventory variables using either JSON or YAML syntax. Use the radio button to toggle between the two. Refer to the Ansible Tower documentation for example syntax.'), awPopOver: i18n._('Enter inventory variables using either JSON or YAML syntax. Use the radio button to toggle between the two. Refer to the Ansible Tower documentation for example syntax.'),
// dataTitle: i18n._('Variables'), // dataTitle: i18n._('Variables'),
// dataPlacement: 'right', // dataPlacement: 'right',